Package noaa.coastwatch.util.chunk
Class ExpressionFunction.VariableValueSource
java.lang.Object
noaa.coastwatch.util.chunk.ExpressionFunction.VariableValueSource
- All Implemented Interfaces:
EvaluateImp
- Enclosing class:
- ExpressionFunction
Provides expression variable values for this function to run.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe value index to use in retrieving a variable value. -
Constructor Summary
ConstructorsConstructorDescriptionVariableValueSource(List<DataChunk> chunks) Creates a new source of variable values from a list of chunks. -
Method Summary
Modifier and TypeMethodDescriptionbytegetByteProperty(int varIndex) doublegetDoubleProperty(int varIndex) floatgetFloatProperty(int varIndex) intgetIntegerProperty(int varIndex) longgetLongProperty(int varIndex) shortgetShortProperty(int varIndex) booleanGets the status of variable data missing flags.
-
Field Details
-
valueIndex
public int valueIndexThe value index to use in retrieving a variable value.
-
-
Constructor Details
-
VariableValueSource
Creates a new source of variable values from a list of chunks.- Parameters:
chunks- the data chunks to use for variable values, in order by index in the expression.
-
-
Method Details
-
isMissingAnyValue
public boolean isMissingAnyValue()Gets the status of variable data missing flags.- Returns:
- true if any variable has a missing value at the currently set value index, or false if not.
-
getByteProperty
public byte getByteProperty(int varIndex) - Specified by:
getBytePropertyin interfaceEvaluateImp
-
getShortProperty
public short getShortProperty(int varIndex) - Specified by:
getShortPropertyin interfaceEvaluateImp
-
getIntegerProperty
public int getIntegerProperty(int varIndex) - Specified by:
getIntegerPropertyin interfaceEvaluateImp
-
getLongProperty
public long getLongProperty(int varIndex) - Specified by:
getLongPropertyin interfaceEvaluateImp
-
getFloatProperty
public float getFloatProperty(int varIndex) - Specified by:
getFloatPropertyin interfaceEvaluateImp
-
getDoubleProperty
public double getDoubleProperty(int varIndex) - Specified by:
getDoublePropertyin interfaceEvaluateImp
-