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 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.
-
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:ScanHandle
Position to the next log record.- Specified by:
next
in 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:
getGroup
in interfaceScanHandle
- Throws:
StandardException
- Oops
-
getLoggable
Get the Loggable associated with the currentLogRecord- Specified by:
getLoggable
in interfaceScanHandle
- Throws:
StandardException
- Oops
-
getOptionalData
Description copied from interface:ScanHandle
Get an InputStream for reading the optional data associated with the current log record. This may only be called once per log record.- Specified by:
getOptionalData
in interfaceScanHandle
- Throws:
StandardException
- Oops
-
getInstant
Description copied from interface:ScanHandle
Get the DatabaseInstant for the current log record.- Specified by:
getInstant
in interfaceScanHandle
- Throws:
StandardException
- Oops
-
getTransactionId
Description copied from interface:ScanHandle
Get the TransactionId for the current log record.- Specified by:
getTransactionId
in interfaceScanHandle
- Throws:
StandardException
- Oops
-
close
public void close()Description copied from interface:ScanHandle
Close this scan.- Specified by:
close
in interfaceScanHandle
-