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
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataIndexTransformer.Builder
builder()
Create abuilder
that specifies transformations to apply to an existingdata index
.default void
default boolean
default boolean
-
Method Details
-
intersectRowSet
ARowSet
tointersect
with input RowSets when producing output RowSets. If present, the resultBasicDataIndex
will be a static snapshot. This is the first transformation applied if present. -
invertRowSet
-
sortByFirstRowKey
@Default default boolean sortByFirstRowKey()Whether to sort the outputBasicDataIndex's
table
by the first row key in each outputRowSet
. This is always applied afterintersectRowSet()
andinvertRowSet()
if present. Note that when sorting arefreshing
index, 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 abuilder
that specifies transformations to apply to an existingdata index
.When multiple transformations are specified, they are applied in a specific order:
- Intersect the index
RowSets
with the supplied RowSet. Note that the result will always be a static snapshot. - Invert the index
RowSets
with 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
DataIndexTransformer
builder.
- Intersect the index
-