Package org.apache.derby.iapi.store.raw
Interface ScanHandle
- All Known Implementing Classes:
FlushedScanHandle
public interface ScanHandle
Inteface for scanning the log from outside the RawStore.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this scan.int
getGroup()
Get the group for the current log record.Get the DatabaseInstant for the current log record.Get the Loggable associated with the currentLogRecordGet an InputStream for reading the optional data associated with the current log record.Get the TransactionId for the current log record.boolean
next()
Position to the next log record.
-
Method Details
-
next
Position 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
Get the group for the current log record.- Throws:
StandardException
- Oops
-
getLoggable
Get the Loggable associated with the currentLogRecord- Throws:
StandardException
- Oops
-
getOptionalData
Get 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
Get the DatabaseInstant for the current log record.- Throws:
StandardException
- Oops
-
getTransactionId
Get the TransactionId for the current log record.- Throws:
StandardException
- Oops
-
close
void close()Close this scan.
-