Package net.ontopia.topicmaps.db2tm
Class ChangelogReaderWrapper
java.lang.Object
net.ontopia.topicmaps.db2tm.ChangelogReaderWrapper
- All Implemented Interfaces:
ChangelogReaderIF,TupleReaderIF
INTERNAL: This tuple reader wraps an underlying tuple reader, and
collapses a sequence of actions for the same key into a single
final action. Tuples are coming through ordered by key first, then
by sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Releases all resources held by the tuple reader.INTERNAL: Returns the type of change that the current tuple went through.INTERNAL: Returns the current order value found in the order-column.String[]readNext()INTERNAL: Returns the next tuple.
-
Constructor Details
-
ChangelogReaderWrapper
-
-
Method Details
-
getChangeType
Description copied from interface:ChangelogReaderIFINTERNAL: Returns the type of change that the current tuple went through.- Specified by:
getChangeTypein interfaceChangelogReaderIF
-
getOrderValue
Description copied from interface:ChangelogReaderIFINTERNAL: Returns the current order value found in the order-column. This information is used so that one can keep track of incremental updates.- Specified by:
getOrderValuein interfaceChangelogReaderIF
-
readNext
Description copied from interface:TupleReaderIFINTERNAL: Returns the next tuple. Method will return null when there are no more tuples.- Specified by:
readNextin interfaceTupleReaderIF
-
close
public void close()Description copied from interface:TupleReaderIFINTERNAL: Releases all resources held by the tuple reader. This method should be called when done with the tuple reader.- Specified by:
closein interfaceTupleReaderIF
-