Package org.yamcs.yarch.rocksdb
Class SecondaryIndexTableWalker
java.lang.Object
org.yamcs.yarch.rocksdb.SecondaryIndexTableWalker
- All Implemented Interfaces:
TableWalker
iterates through a table based on the secondary index range.
The Rocksdb key of the secondary index is formed by
- tbsIndex
- secondary key
- primary key
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SecondaryIndexTableWalker
(Tablespace tablespace, RdbTable table, boolean ascending, boolean follow) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
void
setBatchUpdates
(boolean batchUpdates) void
setPrimaryIndexRange
(DbRange pkRange) void
setSecondaryIndexRange
(DbRange skRange) void
walk
(TableVisitor visitor) Iterate data through the given interval taking into account also the tableRange.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.yarch.TableWalker
setPartitionFilter
-
Field Details
-
visitor
-
-
Constructor Details
-
SecondaryIndexTableWalker
protected SecondaryIndexTableWalker(Tablespace tablespace, RdbTable table, boolean ascending, boolean follow)
-
-
Method Details
-
walk
Iterate data through the given interval taking into account also the tableRange.tableRange has to be non-null but can be unbounded at one or both ends. <p Return true if the tableRange is bounded and the end has been reached.
- Specified by:
walk
in interfaceTableWalker
- Throws:
StreamSqlException
YarchException
-
setPrimaryIndexRange
- Specified by:
setPrimaryIndexRange
in interfaceTableWalker
-
setSecondaryIndexRange
- Specified by:
setSecondaryIndexRange
in interfaceTableWalker
-
close
public void close()- Specified by:
close
in interfaceTableWalker
-
isBatchUpdates
public boolean isBatchUpdates()- Specified by:
isBatchUpdates
in interfaceTableWalker
-
setBatchUpdates
public void setBatchUpdates(boolean batchUpdates) - Specified by:
setBatchUpdates
in interfaceTableWalker
-