public final class ReadableStorage extends Object
internalTypes
that the aggregator declared.
Needed only for writing custom Aggregator; consumers of the API
should not need to use this class.| Constructor and Description |
|---|
ReadableStorage(ScalarValued[] internals)
Create a new readable storage.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinaryRef(int offset)
Returns the value of the internal element at the given offset.
|
boolean |
getBoolean(int offset)
Returns the value of the internal element at the given offset.
|
char |
getChar(int offset)
Returns the value of the internal element at the given offset.
|
long |
getDateEpochDays(int offset)
Returns the value of the internal element at the given offset.
|
double |
getDouble(int offset)
Returns the value of the internal element at the given offset.
|
float |
getFloat(int offset)
Returns the value of the internal element at the given offset.
|
int |
getInt(int offset)
Returns the value of the internal element at the given offset.
|
long |
getLong(int offset)
Returns the value of the internal element at the given offset.
|
long |
getMoney(int offset)
Returns the value of the internal element at the given offset.
|
BigDecimal |
getNumeric(int offset)
Returns the value of the internal element at the given offset.
|
Object |
getObject(int offset)
Returns the value of the internal element at the given offset.
|
ScalarValued |
getScalarValued(int offset)
Returns the value of the internal element at the given offset.
|
String |
getString(int offset)
Returns the value of the internal element at the given offset.
|
int |
getTimeDayMillis(int offset)
Returns the value of the internal element at the given offset.
|
public ReadableStorage(ScalarValued[] internals)
internals - the array of internals.public double getDouble(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type DoubleValuedpublic BigDecimal getNumeric(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type NumericValuedpublic long getMoney(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type MoneyValuedpublic long getLong(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type LongValuedpublic Object getObject(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type ObjectValuedpublic ScalarValued getScalarValued(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.public byte[] getBinaryRef(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type BinaryValuedpublic boolean getBoolean(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type BooleanValued.public char getChar(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type CharValued.public long getDateEpochDays(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type DateValued.public int getInt(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type IntValued.public String getString(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type StringValued.public float getFloat(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type FloatValued.public int getTimeDayMillis(int offset)
offset - the offset of the internal element.ArrayIndexOutOfBoundsException - if the given offset is larger than the number of internalTypes.ClassCastException - if the internalType at the given offset is not of type TimeValued.Copyright © 2020 Actian Corporation. All rights reserved.