Package io.deephaven.engine.table
Interface DataIndexTransformer
@Immutable
public interface DataIndexTransformer
A transformation to apply to an existing
data index in order to produce a transformed
BasicDataIndex.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DataIndexTransformer.Builderbuilder()Create abuilderthat specifies transformations to apply to an existingdata index.default voiddefault booleandefault boolean
-
Method Details
-
intersectRowSet
ARowSettointersectwith input RowSets when producing output RowSets. If present, the resultBasicDataIndexwill be a static snapshot. This is the first transformation applied if present. -
invertRowSet
-
sortByFirstRowKey
@Default default boolean sortByFirstRowKey()Whether to sort the outputBasicDataIndex'stableby the first row key in each outputRowSet. This is always applied afterintersectRowSet()andinvertRowSet()if present. Note that when sorting arefreshingindex, operations that rely on the transformed index must be sure to depend on the transformed index, and not the input index, for correct satisfaction. -
snapshotResult
- Returns:
- Whether the set of transformations will force the result index table to be a static snapshot.
-
checkNotEmpty
@Check default void checkNotEmpty() -
builder
Create abuilderthat specifies transformations to apply to an existingdata index.When multiple transformations are specified, they are applied in a specific order:
- Intersect the index
RowSetswith the supplied RowSet. Note that the result will always be a static snapshot. - Invert the index
RowSetswith the supplied RowSet. Note that the result will always be a static snapshot. - Sort the index table by the first row key within each
RowSet. Be careful to use the correct dependency for satisfaction!
- Returns:
- A new
DataIndexTransformerbuilder.
- Intersect the index
-