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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecondaryIndexTableWalker(Tablespace tablespace, RdbTable table, boolean ascending, boolean follow) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanvoidsetBatchUpdates(boolean batchUpdates) voidsetPrimaryIndexRange(DbRange pkRange) voidsetSecondaryIndexRange(DbRange skRange) voidwalk(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, waitMethods 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.
Return true if the tableRange is bounded and the end has been reached.
- Specified by:
walkin interfaceTableWalker- Throws:
StreamSqlExceptionYarchException
-
setPrimaryIndexRange
- Specified by:
setPrimaryIndexRangein interfaceTableWalker
-
setSecondaryIndexRange
- Specified by:
setSecondaryIndexRangein interfaceTableWalker
-
close
public void close()- Specified by:
closein interfaceTableWalker
-
isBatchUpdates
public boolean isBatchUpdates()- Specified by:
isBatchUpdatesin interfaceTableWalker
-
setBatchUpdates
public void setBatchUpdates(boolean batchUpdates) - Specified by:
setBatchUpdatesin interfaceTableWalker
-