Class DhFormulaColumn
java.lang.Object
io.deephaven.engine.table.impl.select.AbstractFormulaColumn
io.deephaven.engine.table.impl.select.DhFormulaColumn
- All Implemented Interfaces:
Selectable
,FormulaColumn
,SelectColumn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
SelectColumn.ExpressionAdapter
-
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.select.AbstractFormulaColumn
ALLOW_UNSAFE_REFRESHING_FORMULAS, COLUMN_SUFFIX, columnDefinitions, columnName, columnSources, formulaFactoryFuture, formulaString, originalFormulaString, params, returnedType, usedColumnArrays, usedColumns, usesI, usesII, usesK
Fields inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
ZERO_LENGTH_SELECT_COLUMN_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a copy of this SelectColumn.protected CompletionStageFuture<FormulaKernelFactory>
getFormulaKernelFactory
(@NotNull QueryCompilerRequestProcessor compilationRequestProcessor) Returns a Pair object consisting of formula string and shift to column MatchPairs.protected FormulaSourceDescriptor
static Class<?>
getVectorType
(Class<?> declaredType) boolean
initDef
(@NotNull Map<String, ColumnDefinition<?>> columnDefinitionMap) Initialize any internal column definitions from the provided initial.initDef
(@NotNull Map<String, ColumnDefinition<?>> columnDefinitionMap, @NotNull QueryCompilerRequestProcessor compilationRequestProcessor) Initialize any internal column definitions from the provided initial.boolean
Returns true if this column is stateless (i.e.Methods inherited from class io.deephaven.engine.table.impl.select.AbstractFormulaColumn
applyUsedVariables, createKernelFormulaFactory, getColumnArrays, getColumns, getDataView, getLazyView, getMatchPair, getName, getReturnedComponentType, getReturnedType, hasVirtualRowVariables, initInputs, isRetain, newDestInstance, newFlatDestInstance, onCopy, toString, validateColumnDefinition, validateSafeForRefresh
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.engine.table.impl.select.FormulaColumn
hasConstantArrayAccess
Methods inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
expression, newColumn, recomputeOnModifiedRow, withRecomputeOnModifiedRow
-
Field Details
-
useKernelFormulasProperty
public static boolean useKernelFormulasProperty
-
-
Method Details
-
getFormulaColumnPython
-
getVectorType
-
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
-
initDef
public List<String> initDef(@NotNull @NotNull Map<String, ColumnDefinition<?>> columnDefinitionMap, @NotNull @NotNull QueryCompilerRequestProcessor compilationRequestProcessor) Description copied from interface:SelectColumn
Initialize any internal column definitions from the provided initial. A compilation request consumer is provided to allow for deferred compilation of expressions that belong to the same query.Compilations must be resolved before using this
SelectColumn
.- Parameters:
columnDefinitionMap
- the starting set of column definitions; valid for this call onlycompilationRequestProcessor
- a consumer to submit compilation requests; valid for this call only- Returns:
- a list of columns on which the result of this is dependent
-
getSourceDescriptor
- Specified by:
getSourceDescriptor
in classAbstractFormulaColumn
-
getFormulaKernelFactory
protected CompletionStageFuture<FormulaKernelFactory> getFormulaKernelFactory(@NotNull @NotNull QueryCompilerRequestProcessor compilationRequestProcessor) -
copy
Description copied from interface:SelectColumn
Create a copy of this SelectColumn.- Returns:
- an independent copy of this SelectColumn.
-
hasConstantValue
public boolean hasConstantValue()- Returns:
- true if all rows have a single constant value
-
getFormulaShiftColPair
Description copied from interface:FormulaColumn
Returns a Pair object consisting of formula string and shift to column MatchPairs. If the column formula or expression has Array Access that conforms to "i +/- <constant>" or "ii +/- <constant>". If there is a parsing error for the expression null is returned.- Returns:
- Pair of final formula string and shift to column MatchPairs.
-
isStateless
public 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).
-