Package com.illumon.iris.db.v2.select
Interface FormulaColumn
- All Superinterfaces:
SelectColumn
- All Known Implementing Classes:
AbstractFormulaColumn
,DhFormulaColumn
,NumbaFormulaColumn
public interface FormulaColumn extends SelectColumn
-
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.select.SelectColumn
ZERO_LENGTH_SELECT_COLUMN_ARRAY
-
Method Summary
Modifier and Type Method Description static FormulaColumn
createFormulaColumn(String columnName, String formulaString)
static FormulaColumn
createFormulaColumn(String columnName, String formulaString, FormulaParserConfiguration parser)
static FormulaColumn
createFormulaColumn(String columnName, String formulaString, FormulaParserConfiguration parser, boolean alwaysUpdate)
default com.fishlib.base.Pair<String,Map<Long,List<MatchPair>>>
getFormulaShiftColPair()
Returns a Pair object consisting of formula string and shift to column MatchPairs.default boolean
hasConstantArrayAccess()
Returns true if the formula expression of the column has Array Access that conforms to "i +/- <constant>" or "ii +/- <constant>".default boolean
hasConstantValue()
returns true if the column only has single constant value for all rows.ColumnSource
updateData(WritableSource result, long destPos, long sourcePos)
Methods inherited from interface com.illumon.iris.db.v2.select.SelectColumn
alwaysEvaluate, alwaysEvaluateCopy, copy, disallowRefresh, getColumnArrays, getColumns, getConstantValueView, getDataView, getLazyView, getMatchPair, getName, getReturnedType, initDef, initInputs, initInputs, isRetain, newDestInstance
-
Method Details
-
createFormulaColumn
static FormulaColumn createFormulaColumn(String columnName, String formulaString, FormulaParserConfiguration parser) -
createFormulaColumn
static FormulaColumn createFormulaColumn(String columnName, String formulaString, FormulaParserConfiguration parser, boolean alwaysUpdate) -
createFormulaColumn
-
updateData
-
hasConstantValue
default boolean hasConstantValue()returns true if the column only has single constant value for all rows.- Returns:
- true if column rows only have single constant value
-
hasConstantArrayAccess
default boolean hasConstantArrayAccess()Returns true if the formula expression of the column has Array Access that conforms to "i +/- <constant>" or "ii +/- <constant>".- Returns:
- true or false
-
getFormulaShiftColPair
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.
-