Class FlushedScanHandle
java.lang.Object
org.apache.derby.impl.store.raw.log.FlushedScanHandle
- All Implemented Interfaces:
ScanHandle
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) StreamLogScan(package private) int(package private) LogFactory(package private) LogRecord(package private) ArrayInputStream(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this scan.intgetGroup()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.booleannext()Position to the next log record.
-
Field Details
-
lf
LogFactory lf -
fs
-
lr
LogRecord lr -
readOptionalData
boolean readOptionalData -
groupsIWant
int groupsIWant -
rawInput
ArrayInputStream rawInput
-
-
Constructor Details
-
FlushedScanHandle
FlushedScanHandle(LogToFile lf, DatabaseInstant start, int groupsIWant) throws StandardException - Throws:
StandardException
-
-
Method Details
-
next
Description copied from interface:ScanHandlePosition to the next log record.- Specified by:
nextin interfaceScanHandle- 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.- Specified by:
getGroupin interfaceScanHandle- Throws:
StandardException- Oops
-
getLoggable
Get the Loggable associated with the currentLogRecord- Specified by:
getLoggablein interfaceScanHandle- Throws:
StandardException- Oops
-
getOptionalData
Description copied from interface:ScanHandleGet an InputStream for reading the optional data associated with the current log record. This may only be called once per log record.- Specified by:
getOptionalDatain interfaceScanHandle- Throws:
StandardException- Oops
-
getInstant
Description copied from interface:ScanHandleGet the DatabaseInstant for the current log record.- Specified by:
getInstantin interfaceScanHandle- Throws:
StandardException- Oops
-
getTransactionId
Description copied from interface:ScanHandleGet the TransactionId for the current log record.- Specified by:
getTransactionIdin interfaceScanHandle- Throws:
StandardException- Oops
-
close
public void close()Description copied from interface:ScanHandleClose this scan.- Specified by:
closein interfaceScanHandle
-