Class TableTransformationColumn
java.lang.Object
io.deephaven.engine.table.impl.partitioned.TableTransformationColumn
- All Implemented Interfaces:
Selectable
,SelectColumn
SelectColumn
implementation to wrap transformer functions for transformations
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
SelectColumn.ExpressionAdapter
-
Field Summary
Fields inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
ZERO_LENGTH_SELECT_COLUMN_ARRAY
-
Constructor Summary
ConstructorDescriptionTableTransformationColumn
(@NotNull String inputOutputColumnName, ExecutionContext executionContext, @NotNull Function<Table, Table> transformer) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a copy of this SelectColumn.Get a list of the names of column arrays used in this SelectColumn.Get a list of the names of columns used in this SelectColumn.@NotNull ColumnSource<?>
Get aColumnSource
that can be used to access the data on demand.final @NotNull ColumnSource<?>
Returns a lazily computed view of this column.final MatchPair
Get a MatchPair for this column, if applicable.getName()
Get the name of the resultant column.Class<?>
Get the data component type stored in the resultant column.final Class<?>
Get the data type stored in the resultant column.initDef
(@NotNull Map<String, ColumnDefinition<?>> columnDefinitionMap) Initialize any internal column definitions from the provided initial.initInputs
(@NotNull TrackingRowSet rowSet, @NotNull Map<String, ? extends ColumnSource<?>> columnsOfInterest) Initialize the column from the provided set of underlying columns and row set.final boolean
isRetain()
final boolean
Returns true if this column is stateless (i.e.final WritableColumnSource<?>
newDestInstance
(long size) Create a newWritableColumnSource
.final WritableColumnSource<?>
newFlatDestInstance
(long size) Create a newimmutable
WritableColumnSource
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
expression, hasVirtualRowVariables, initDef, newColumn, recomputeOnModifiedRow, validateSafeForRefresh, withRecomputeOnModifiedRow
-
Constructor Details
-
TableTransformationColumn
public TableTransformationColumn(@NotNull @NotNull String inputOutputColumnName, ExecutionContext executionContext, @NotNull @NotNull Function<Table, Table> transformer)
-
-
Method Details
-
initInputs
public List<String> initInputs(@NotNull @NotNull TrackingRowSet rowSet, @NotNull @NotNull Map<String, ? extends ColumnSource<?>> columnsOfInterest) Description copied from interface:SelectColumn
Initialize the column from the provided set of underlying columns and row set.- Parameters:
rowSet
- the base row setcolumnsOfInterest
- the input columns- Returns:
- a list of columns on which the result of this is dependent
-
initDef
Description copied from interface:SelectColumn
Initialize any internal column definitions from the provided initial. Any formulae will be compiled immediately using theQueryCompiler
in the currentExecutionContext
.- Parameters:
columnDefinitionMap
- the starting set of column definitions; valid for this call only- Returns:
- a list of columns on which the result of this is dependent
-
getColumns
Description copied from interface:SelectColumn
Get a list of the names of columns used in this SelectColumn. Behavior is undefined if none of the init* methods have been called yet.- Returns:
- the columns used in this SelectColumn
-
getDataView
Description copied from interface:SelectColumn
Get aColumnSource
that can be used to access the data on demand.- Returns:
- a
ColumnSource
-
getName
Description copied from interface:SelectColumn
Get the name of the resultant column.- Returns:
- the name of the column
-
copy
Description copied from interface:SelectColumn
Create a copy of this SelectColumn.- Returns:
- an independent copy of this SelectColumn.
-
getReturnedType
Description copied from interface:SelectColumn
Get the data type stored in the resultant column.- Specified by:
getReturnedType
in interfaceSelectColumn
- Returns:
- the type
-
getReturnedComponentType
Description copied from interface:SelectColumn
Get the data component type stored in the resultant column.- Specified by:
getReturnedComponentType
in interfaceSelectColumn
- Returns:
- the component type
-
getColumnArrays
Description copied from interface:SelectColumn
Get a list of the names of column arrays used in this SelectColumn. Behavior is undefined if none of the init* methods have been called yet.- Specified by:
getColumnArrays
in interfaceSelectColumn
- Returns:
- the list of column arrays used
-
getLazyView
Description copied from interface:SelectColumn
Returns a lazily computed view of this column.- Specified by:
getLazyView
in interfaceSelectColumn
- Returns:
- a lazily computed column source
-
getMatchPair
Description copied from interface:SelectColumn
Get a MatchPair for this column, if applicable.- Specified by:
getMatchPair
in interfaceSelectColumn
- Returns:
- the MatchPair for this column, if applicable.
-
newDestInstance
Description copied from interface:SelectColumn
Create a newWritableColumnSource
. The returned column source must be capable of handling updates.- Specified by:
newDestInstance
in interfaceSelectColumn
- Parameters:
size
- A hint as to the number of rows that will be used- Returns:
- a new
WritableColumnSource
-
newFlatDestInstance
Description copied from interface:SelectColumn
Create a newimmutable
WritableColumnSource
. The returned column source should be flat, and need not handle updates.- Specified by:
newFlatDestInstance
in interfaceSelectColumn
- Parameters:
size
- A hint as to the number of rows that will be used- Returns:
- a new
WritableColumnSource
-
isRetain
public final boolean isRetain()- Specified by:
isRetain
in interfaceSelectColumn
- Returns:
-
isStateless
public final boolean isStateless()Description copied from interface:SelectColumn
Returns true if this column is stateless (i.e. one row does not depend on the order of evaluation for another row).- Specified by:
isStateless
in interfaceSelectColumn
-