Class RowSetIndexer
java.lang.Object
io.deephaven.engine.table.impl.indexer.RowSetIndexer
- All Implemented Interfaces:
TrackingRowSet.Indexer
Indexer that provides "grouping" information based on key values extracted from a
TupleSource, linked to a
TrackingRowSet.- ApiNote:
- RowSetIndexers should not be used after the host
TrackingRowSethas beenclosed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyImmutableGroupings(TupleSource source, TupleSource dest) getGrouping(TupleSource tupleSource) getGroupingForKeySet(Set<Object> keys, TupleSource tupleSource) Return a grouping that contains row keys that match the values inkeys.getPrevGrouping(TupleSource tupleSource) getSubSetForKeySet(Set<Object> keys, TupleSource tupleSource) Return a subset that contains row keys that match the values inkeys.booleanhasGrouping(ColumnSource... keyColumns) static RowSetIndexerof(TrackingRowSet rowSet) voidCallback for the host TrackingRowSet to report a modification that may invalidate cached indexing information.
-
Constructor Details
-
RowSetIndexer
-
-
Method Details
-
of
-
rowSetChanged
public void rowSetChanged()Description copied from interface:TrackingRowSet.IndexerCallback for the host TrackingRowSet to report a modification that may invalidate cached indexing information.- Specified by:
rowSetChangedin interfaceTrackingRowSet.Indexer
-
hasGrouping
-
getGrouping
-
getPrevGrouping
-
copyImmutableGroupings
-
getGroupingForKeySet
Return a grouping that contains row keys that match the values inkeys.- Parameters:
keys- A set of values thatTupleSourceshould match. For a singleColumnSource, the values within the set are the values that we would like to find. For compoundTupleSourceinstances, the values are SmartKeys.tupleSource- The tuple factory for singular or compound keys- Returns:
- A map from keys to
RowSet, for each of thekeyspresent in the indexed RowSet's view oftupleSource
-
getSubSetForKeySet
Return a subset that contains row keys that match the values inkeys.- Parameters:
keys- A set of values thatTupleSourceshould match. For a singleColumnSource, the values within the set are the values that we would like to find. For compoundTupleSourceinstances, the values are SmartKeys.tupleSource- The tuple factory for singular or compound keys- Returns:
- A
WritableRowSetwith all row keys from the indexed RowSet whose value intupleSourcewas present inkeys
-