Package org.apache.derby.iapi.store.raw
Interface ScanHandle
-
- All Known Implementing Classes:
FlushedScanHandle
public interface ScanHandleInteface for scanning the log from outside the RawStore.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close this scan.intgetGroup()Get the group for the current log record.DatabaseInstantgetInstant()Get the DatabaseInstant for the current log record.LoggablegetLoggable()Get the Loggable associated with the currentLogRecordjava.io.InputStreamgetOptionalData()Get an InputStream for reading the optional data associated with the current log record.java.lang.ObjectgetTransactionId()Get the TransactionId for the current log record.booleannext()Position to the next log record.
-
-
-
Method Detail
-
next
boolean next() throws StandardExceptionPosition to the next log record.- Returns:
- true if the log contains a next flushed log record and false otherwise. If this returns false it is incorrect to make any of the other calls on this interface.
- Throws:
StandardException- Oops
-
getGroup
int getGroup() throws StandardExceptionGet the group for the current log record.- Throws:
StandardException- Oops
-
getLoggable
Loggable getLoggable() throws StandardException
Get the Loggable associated with the currentLogRecord- Throws:
StandardException- Oops
-
getOptionalData
java.io.InputStream getOptionalData() throws StandardExceptionGet an InputStream for reading the optional data associated with the current log record. This may only be called once per log record.- Throws:
StandardException- Oops
-
getInstant
DatabaseInstant getInstant() throws StandardException
Get the DatabaseInstant for the current log record.- Throws:
StandardException- Oops
-
getTransactionId
java.lang.Object getTransactionId() throws StandardExceptionGet the TransactionId for the current log record.- Throws:
StandardException- Oops
-
close
void close()
Close this scan.
-
-