LogScan
FlushedScan
, Scan
public interface StreamLogScan extends LogScan
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Close this log scan.
|
long |
getInstant() |
Get the instant of the record just retrieved with getNextRecord().
|
LogInstant |
getLogInstant() |
Get the LogInstant for the record just retrieved with getNextRecord().
|
long |
getLogRecordEnd() |
Get the log instant that is right after the record just retrieved with
getNextRecord().
|
LogRecord |
getNextRecord(ArrayInputStream input,
TransactionId tranId,
int groupmask) |
Get the next record in the scan and place its data in the passed in
array.
|
boolean |
isLogEndFuzzy() |
|
void |
resetPosition(LogInstant instant) |
Reset the scan to the given LogInstant so that getNextRecord get the
log record AFTER the given LogInstant.
|
LogRecord getNextRecord(ArrayInputStream input, TransactionId tranId, int groupmask) throws StandardException, java.io.IOException
input
- the ArrayInputStream to put the log recordtranId
- if non-null, only log record that equals tranId
will be returned. If null, log records are not
filtered on transaction Id.groupmask
- if non-zero, only log record whose Loggable's group
value is included in the groupmask is returned.
groupmask can be a bit wise OR of many Loggable
groups. If zero, log records are not filtered on
the Loggable's group.StandardException
- Standard Clooudscape error policyjava.io.IOException
- Some I/O exception raised during reading
the log record.long getInstant()
long getLogRecordEnd()
boolean isLogEndFuzzy()
LogInstant getLogInstant()
void resetPosition(LogInstant instant) throws java.io.IOException, StandardException
instant
- the log instant to reset tojava.io.IOException
- Some I/O exception raised when accessing
the log fileStandardException
- reset to illegal position or beyond the
limit of the scan.void close()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.