public interface Variable extends VariableMetaData
Modifier and Type | Method and Description |
---|---|
byte[] |
asByteArray()
Returns this variable's values as byte[] if variable type is byte,
unsigned byte or char.Otherwise, throws Throwable
|
byte[] |
asByteArray(int[] pt)
Returns this variable's values for a range of records as byte[] if
variable type is byte, unsigned byte or char.Otherwise, throws
Throwable
|
double[] |
asDoubleArray()
Returns this variable's values as double[].If variable type cannot be cast to double, a Throwable is thrown.
|
double[] |
asDoubleArray(boolean preserve,
int[] pt)
Returns this variable's values for the specified range of records as
double[].If variable type cannot be cast to double, a Throwable is thrown.If preserve is true, a Throwable is thrown for variables of type long
to signal possible loss of precision.
|
double[] |
asDoubleArray(int[] pt)
Returns this variable's values for the specified range of records as
double[].If variable type cannot be cast to double, a Throwable is thrown.
|
float[] |
asFloatArray()
Returns this variable's values as float[].If variable type cannot be cast to float, a Throwable is thrown.
|
float[] |
asFloatArray(boolean preserve,
int[] pt)
Returns this variable's values for the specified range of records as
float[].If variable type cannot be cast to float, a Throwable is thrown.If preserve is true, a Throwable is thrown for variables of type double,
long or int to signal possible loss of precision.
|
float[] |
asFloatArray(int[] pt)
Returns this variable's values for the specified range of records as
float[].If variable type cannot be cast to float, a Throwable is thrown.
|
int[] |
asIntArray()
Returns this variable's values as int[] for variables of type
int, short or unsigned short, byte or unsigned byte.throws Throwable for variables of other types.
|
int[] |
asIntArray(boolean preserve,
int[] pt)
Returns this variable's values for the specified range of records as
int[] for variables of type int, short or unsigned short, byte or
unsigned byte, or unsigned int (only if preserve is false).throws Throwable for variables of other types.
|
int[] |
asIntArray(int[] pt)
Returns this variable's values for the specified range of records as
int[] for variables of type int, short or unsigned short, byte or
unsigned byte.throws Throwable for variables of other types.
|
long[] |
asLongArray()
Returns this variable's values as long[] for variables of type long.throws Throwable for variables of other types.
|
long[] |
asLongArray(int[] pt)
Returns this variable's values for the specified range of records as
long[] for variables of type long.throws Throwable for variables of other types.
|
short[] |
asShortArray()
Returns this variable's values as short[] for variables of type
short, byte or unsigned byte
throws Throwable for variables of other types.
|
short[] |
asShortArray(boolean preserve,
int[] pt)
Returns this variable's values for the specified range of records as
short[] for variables of type short, byte or unsigned byte, or
unsigned short (only if preserve is false).throws Throwable for variables of other types.
|
short[] |
asShortArray(int[] pt)
Returns this variable's values for the specified range of records as
short[] for variables of type short, byte or unsigned byte.throws Throwable for variables of other types.
|
VDataContainer.CByte |
getByteContainer(int[] pt)
Returns byte
DataContainer for a
range of points. |
CDFImpl |
getCDF()
Returns
CDFImpl object containing this variable. |
VDataContainer.CDouble |
getDoubleContainer(int[] pt,
boolean preserve)
Returns double
DataContainer for a
range of points using native ByteOrder, optionally accepting possible
loss of precision. |
VDataContainer.CDouble |
getDoubleContainer(int[] pt,
boolean preserve,
java.nio.ByteOrder bo)
Returns double
DataContainer for a
range of points, optionally accepting possible loss of precision. |
int[] |
getEffectiveDimensions()
Returns effective dimensions
|
java.util.Vector |
getElementCount()
Return element count for this variable's dimensions.
|
VDataContainer.CFloat |
getFloatContainer(int[] pt,
boolean preserve)
Returns float
DataContainer for a
range of points using native ByteOrder, optionally accepting possible
loss of precision. |
VDataContainer.CFloat |
getFloatContainer(int[] pt,
boolean preserve,
java.nio.ByteOrder bo)
Returns float
DataContainer for a
range of points, optionally accepting possible loss of precision. |
VDataContainer.CInt |
getIntContainer(int[] pt,
boolean preserve)
Returns int
DataContainer for a
range of points using native ByteOrder, optionally accepting possible
loss of precision. |
VDataContainer.CInt |
getIntContainer(int[] pt,
boolean preserve,
java.nio.ByteOrder bo)
Returns int
DataContainer for a
range of points, optionally accepting possible loss of precision. |
VDataContainer.CLong |
getLongContainer(int[] pt)
Returns short
DataContainer for a
range of points using native ByteOrder. |
VDataContainer.CLong |
getLongContainer(int[] pt,
java.nio.ByteOrder bo)
Returns long
DataContainer for a
range of points. |
VDataContainer.CShort |
getShortContainer(int[] pt,
boolean preserve)
Returns short
DataContainer for a
range of points using native ByteOrder, optionally accepting possible
loss of precision. |
VDataContainer.CShort |
getShortContainer(int[] pt,
boolean preserve,
java.nio.ByteOrder bo)
Returns short
DataContainer for a
range of points, optionally accepting possible loss of precision. |
VDataContainer.CString |
getStringContainer(int[] pt)
Returns String
DataContainer for a
range of points. |
boolean |
missingRecordValueIsPad()
Return whether the missing record should be assigned the pad
value.
|
boolean |
missingRecordValueIsPrevious()
Return whether the missing record should be assigned the last
seen value.If none has been seen, pad value is assigned.
|
getBlockingFactor, getBuffer, getCompressionType, getDataBuffers, getDataBuffers, getDataItemSize, getDimensions, getEffectiveRank, getLocator, getName, getNumber, getNumberOfElements, getNumberOfValues, getPadValue, getPadValue, getRecordRange, getType, getVarys, isCompatible, isCompatible, isCompressed, isMissingRecords, isTypeR, recordVariance, rowMajority
byte[] asByteArray() throws java.lang.Throwable
java.lang.Throwable
byte[] asByteArray(int[] pt) throws java.lang.Throwable
pt
- java.lang.Throwable
float[] asFloatArray() throws java.lang.Throwable
java.lang.Throwable
float[] asFloatArray(boolean preserve, int[] pt) throws java.lang.Throwable
preserve
- pt
- java.lang.Throwable
float[] asFloatArray(int[] pt) throws java.lang.Throwable
pt
- java.lang.Throwable
double[] asDoubleArray() throws java.lang.Throwable
java.lang.Throwable
double[] asDoubleArray(boolean preserve, int[] pt) throws java.lang.Throwable
preserve
- pt
- java.lang.Throwable
double[] asDoubleArray(int[] pt) throws java.lang.Throwable
pt
- java.lang.Throwable
int[] asIntArray() throws java.lang.Throwable
java.lang.Throwable
int[] asIntArray(boolean preserve, int[] pt) throws java.lang.Throwable
preserve
- pt
- java.lang.Throwable
int[] asIntArray(int[] pt) throws java.lang.Throwable
pt
- java.lang.Throwable
short[] asShortArray() throws java.lang.Throwable
java.lang.Throwable
short[] asShortArray(boolean preserve, int[] pt) throws java.lang.Throwable
preserve
- pt
- java.lang.Throwable
short[] asShortArray(int[] pt) throws java.lang.Throwable
pt
- java.lang.Throwable
long[] asLongArray() throws java.lang.Throwable
java.lang.Throwable
long[] asLongArray(int[] pt) throws java.lang.Throwable
pt
- java.lang.Throwable
boolean missingRecordValueIsPrevious()
missingRecordValueIsPrevious
in interface VariableMetaData
boolean missingRecordValueIsPad()
missingRecordValueIsPad
in interface VariableMetaData
java.util.Vector getElementCount()
getElementCount
in interface VariableMetaData
VDataContainer.CByte getByteContainer(int[] pt) throws java.lang.Throwable
DataContainer
for a
range of points.pt
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CString getStringContainer(int[] pt) throws java.lang.Throwable
DataContainer
for a
range of points.pt
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CFloat getFloatContainer(int[] pt, boolean preserve, java.nio.ByteOrder bo) throws java.lang.Throwable
DataContainer
for a
range of points, optionally accepting possible loss of precision.pt
- bo
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CFloat getFloatContainer(int[] pt, boolean preserve) throws java.lang.Throwable
DataContainer
for a
range of points using native ByteOrder, optionally accepting possible
loss of precision.pt
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CDouble getDoubleContainer(int[] pt, boolean preserve, java.nio.ByteOrder bo) throws java.lang.Throwable
DataContainer
for a
range of points, optionally accepting possible loss of precision.pt
- bo
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CDouble getDoubleContainer(int[] pt, boolean preserve) throws java.lang.Throwable
DataContainer
for a
range of points using native ByteOrder, optionally accepting possible
loss of precision.pt
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CInt getIntContainer(int[] pt, boolean preserve, java.nio.ByteOrder bo) throws java.lang.Throwable
DataContainer
for a
range of points, optionally accepting possible loss of precision.pt
- bo
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CInt getIntContainer(int[] pt, boolean preserve) throws java.lang.Throwable
DataContainer
for a
range of points using native ByteOrder, optionally accepting possible
loss of precision.pt
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CShort getShortContainer(int[] pt, boolean preserve, java.nio.ByteOrder bo) throws java.lang.Throwable
DataContainer
for a
range of points, optionally accepting possible loss of precision.pt
- bo
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CShort getShortContainer(int[] pt, boolean preserve) throws java.lang.Throwable
DataContainer
for a
range of points using native ByteOrder, optionally accepting possible
loss of precision.pt
- preserve
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CLong getLongContainer(int[] pt, java.nio.ByteOrder bo) throws java.lang.Throwable
DataContainer
for a
range of points.pt
- bo
- java.lang.Throwable
- if variable type is not compatibleVDataContainer.CLong getLongContainer(int[] pt) throws java.lang.Throwable
DataContainer
for a
range of points using native ByteOrder.pt
- java.lang.Throwable
- if variable type is not compatibleint[] getEffectiveDimensions()
getEffectiveDimensions
in interface VariableMetaData