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
Modifier and TypeFieldDescriptionint
The value index to use in retrieving a variable value. -
Constructor Summary
ConstructorDescriptionVariableValueSource
(List<DataChunk> chunks) Creates a new source of variable values from a list of chunks. -
Method Summary
Modifier and TypeMethodDescriptionbyte
getByteProperty
(int varIndex) double
getDoubleProperty
(int varIndex) float
getFloatProperty
(int varIndex) int
getIntegerProperty
(int varIndex) long
getLongProperty
(int varIndex) short
getShortProperty
(int varIndex) boolean
Gets 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:
getByteProperty
in interfaceEvaluateImp
-
getShortProperty
public short getShortProperty(int varIndex) - Specified by:
getShortProperty
in interfaceEvaluateImp
-
getIntegerProperty
public int getIntegerProperty(int varIndex) - Specified by:
getIntegerProperty
in interfaceEvaluateImp
-
getLongProperty
public long getLongProperty(int varIndex) - Specified by:
getLongProperty
in interfaceEvaluateImp
-
getFloatProperty
public float getFloatProperty(int varIndex) - Specified by:
getFloatProperty
in interfaceEvaluateImp
-
getDoubleProperty
public double getDoubleProperty(int varIndex) - Specified by:
getDoubleProperty
in interfaceEvaluateImp
-