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

public class DhFormulaColumn extends AbstractFormulaColumn
  • Field Details

    • useKernelFormulasProperty

      public static boolean useKernelFormulasProperty
  • Method Details

    • getFormulaColumnPython

      public FormulaColumnPython getFormulaColumnPython()
    • getVectorType

      public static Class<?> getVectorType(Class<?> declaredType)
    • initDef

      public List<String> initDef(@NotNull @NotNull Map<String,ColumnDefinition<?>> columnDefinitionMap)
      Description copied from interface: SelectColumn
      Initialize any internal column definitions from the provided initial. Any formulae will be compiled immediately using the QueryCompiler in the current ExecutionContext.
      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 only
      compilationRequestProcessor - 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

      protected FormulaSourceDescriptor getSourceDescriptor()
      Specified by:
      getSourceDescriptor in class AbstractFormulaColumn
    • getFormulaKernelFactory

      protected CompletionStageFuture<FormulaKernelFactory> getFormulaKernelFactory(@NotNull @NotNull QueryCompilerRequestProcessor compilationRequestProcessor)
    • copy

      public SelectColumn 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

      public Pair<String,Map<Long,List<MatchPair>>> 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).