Package com.illumon.iris.db.v2.select
Class DhFormulaColumn
java.lang.Object
com.illumon.iris.db.v2.select.AbstractFormulaColumn
com.illumon.iris.db.v2.select.DhFormulaColumn
- All Implemented Interfaces:
FormulaColumn
,SelectColumn
-
Field Summary
FieldsFields inherited from class com.illumon.iris.db.v2.select.AbstractFormulaColumn
COLUMN_SUFFIX, columnName, columnSources, formulaString, params, returnedType, usedColumnArrays, usedColumns, userParams, usesI, usesII, usesK
Fields inherited from interface com.illumon.iris.db.v2.select.SelectColumn
ZERO_LENGTH_SELECT_COLUMN_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Should we ignore modified column sets, and always re-evaluate this column (if appropriate)?Create a copy of this SelectColumn that always re-evaluates (if appropriate).copy()
Create a copy of this SelectColumn.protected FormulaFactory
static Class
getDbArrayType
(Class declaredType) protected FormulaKernelFactory
Returns a Pair object consisting of formula string and shift to column MatchPairs.protected FormulaSourceDescriptor
boolean
returns true if the column only has single constant value for all rows.Initialize any internal column definitions from the provided initial.Methods inherited from class com.illumon.iris.db.v2.select.AbstractFormulaColumn
applyUsedVariables, disallowRefresh, getColumnArrays, getColumns, getDataView, getLazyView, getMatchPair, getName, getReturnedType, initInputs, initInputs, isRetain, makeAppropriateDbArrayWrapper, newDestInstance, toString, updateData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.select.FormulaColumn
hasConstantArrayAccess
Methods inherited from interface com.illumon.iris.db.v2.select.SelectColumn
getConstantValueView
-
Field Details
-
useKernelFormulasProperty
public static boolean useKernelFormulasProperty
-
-
Method Details
-
getDbArrayType
-
initDef
public List<String> initDef(Map<String, com.illumon.dataobjects.ColumnDefinition> columnDefinitionMap) Description copied from interface:SelectColumn
Initialize any internal column definitions from the provided initial.- Parameters:
columnDefinitionMap
- the starting set of column definitions- Returns:
- a list of columns on which the result of this is dependent
-
getSourceDescriptor
- Specified by:
getSourceDescriptor
in classAbstractFormulaColumn
-
getFormulaKernelFactory
- Specified by:
getFormulaKernelFactory
in classAbstractFormulaColumn
-
copy
Description copied from interface:SelectColumn
Create a copy of this SelectColumn.- Returns:
- an independent copy of this SelectColumn.
-
alwaysEvaluateCopy
Description copied from interface:SelectColumn
Create a copy of this SelectColumn that always re-evaluates (if appropriate). -
alwaysEvaluate
public boolean alwaysEvaluate()Description copied from interface:SelectColumn
Should we ignore modified column sets, and always re-evaluate this column (if appropriate)? -
hasConstantValue
public boolean hasConstantValue()Description copied from interface:FormulaColumn
returns true if the column only has single constant value for all rows.- Returns:
- true if column rows only have 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.
-
createFormulaFactory
- Overrides:
createFormulaFactory
in classAbstractFormulaColumn
-