|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.db2tm.ChangelogReaderWrapper
public class ChangelogReaderWrapper
INTERNAL: This tuple reader wraps an underlying tuple reader, and collapses a sequence of actions for the same key into a single final action, using a state machine. Tuples are coming through ordered by key first, then by sequence. We run the changes for each key through a state machine to determine the final action for that key, then move on to the next key.
| Field Summary |
|---|
| Fields inherited from interface net.ontopia.topicmaps.db2tm.ChangelogReaderIF |
|---|
CHANGE_TYPE_CREATE, CHANGE_TYPE_DELETE, CHANGE_TYPE_IGNORE, CHANGE_TYPE_UNKNOWN, CHANGE_TYPE_UPDATE |
| Constructor Summary | |
|---|---|
ChangelogReaderWrapper(ChangelogReaderIF source,
int keylength)
|
|
| Method Summary | |
|---|---|
void |
close()
INTERNAL: Releases all resources held by the tuple reader. |
int |
getChangeType()
INTERNAL: Returns the type of change that the current tuple went through. |
java.lang.String |
getOrderValue()
INTERNAL: Returns the current order value found in the order-column. |
java.lang.String[] |
readNext()
INTERNAL: Returns the next tuple. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangelogReaderWrapper(ChangelogReaderIF source,
int keylength)
| Method Detail |
|---|
public int getChangeType()
ChangelogReaderIF
getChangeType in interface ChangelogReaderIFpublic java.lang.String getOrderValue()
ChangelogReaderIF
getOrderValue in interface ChangelogReaderIFpublic java.lang.String[] readNext()
TupleReaderIF
readNext in interface TupleReaderIFpublic void close()
TupleReaderIF
close in interface TupleReaderIF
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||