Class DhFormulaColumn
java.lang.Object
io.deephaven.engine.table.impl.select.AbstractFormulaColumn
io.deephaven.engine.table.impl.select.DhFormulaColumn
- All Implemented Interfaces:
ConcurrencyControl<Selectable>,Selectable,FormulaColumn,SelectColumn
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
SelectColumn.ExpressionAdapter -
Field Summary
FieldsFields 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, usesKFields 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 Set of ShiftedColumnDefinitions.Returns a String representation of the formula expression with the shifted column names replaced by the corresponding ShiftedColumnDefinition.getResultColumnName() values.protected FormulaSourceDescriptorstatic Class<?>getVectorType(Class<?> declaredType) booleaninitDef(@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.booleanReturns 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, validateSafeForRefreshMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.engine.table.impl.select.FormulaColumn
hasConstantArrayAccess, maybeGetFormulaColumnMethods inherited from interface io.deephaven.api.Selectable
declaredBarriers, isSerial, respectedBarriersMethods inherited from interface io.deephaven.engine.table.impl.select.SelectColumn
expression, maybeGetSourceColumn, newColumn, recomputeOnModifiedRow, withDeclaredBarriers, withRecomputeOnModifiedRow, withRespectedBarriers, withSerial
-
Field Details
-
useKernelFormulasProperty
public static boolean useKernelFormulasProperty
-
-
Method Details
-
getFormulaColumnPython
-
getVectorType
-
initDef
Description copied from interface:SelectColumnInitialize any internal column definitions from the provided initial. Any formulae will be compiled immediately using theQueryCompilerin 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:SelectColumnInitialize 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:
getSourceDescriptorin classAbstractFormulaColumn
-
getFormulaKernelFactory
protected CompletionStageFuture<FormulaKernelFactory> getFormulaKernelFactory(@NotNull @NotNull QueryCompilerRequestProcessor compilationRequestProcessor) -
copy
Description copied from interface:SelectColumnCreate 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
-
getFormulaShiftedColumnDefinitions
Description copied from interface:FormulaColumnReturns a Set of ShiftedColumnDefinitions. 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, this method's result is undefined.- Returns:
- the Set of ShiftedColumnDefinitions or null if there is no constant array access
-
getShiftedFormulaString
Description copied from interface:FormulaColumnReturns a String representation of the formula expression with the shifted column names replaced by the corresponding ShiftedColumnDefinition.getResultColumnName() values.- Returns:
- the shifted formula string or null if there is no constant array access
-
isStateless
public boolean isStateless()Description copied from interface:SelectColumnReturns true if this column is stateless (i.e. one row does not depend on the order of evaluation for another row). -
getFormulaMethodInvocations
-