public class GenericArray extends Object implements BaseArray
| 构造器和说明 |
|---|
GenericArray(Object arr,
int numElements) |
GenericArray(Object arr,
int numElements,
boolean isPrimitiveArray) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getArray() |
BaseArray |
getArray(int pos)
Get array value, internal format is BaseArray.
|
byte[] |
getBinary(int pos)
Get binary value, internal format is byte[].
|
boolean |
getBoolean(int pos)
Get boolean value.
|
byte |
getByte(int pos)
Get byte value.
|
Decimal |
getDecimal(int pos,
int precision,
int scale)
Get decimal value, internal format is Decimal.
|
double |
getDouble(int pos)
Get double value.
|
float |
getFloat(int pos)
Get float value.
|
<T> BinaryGeneric<T> |
getGeneric(int pos)
Get generic value, internal format is BinaryGeneric.
|
int |
getInt(int pos)
Get int value.
|
long |
getLong(int pos)
Get long value.
|
BaseMap |
getMap(int pos)
Get map value, internal format is BaseMap.
|
Object |
getObject(int pos) |
BaseRow |
getRow(int pos,
int numFields)
Get row value, internal format is BaseRow.
|
short |
getShort(int pos)
Get short value.
|
BinaryString |
getString(int pos)
Get string value, internal format is BinaryString.
|
SqlTimestamp |
getTimestamp(int pos,
int precision)
Get Timestamp value, internal format is SqlTimestamp.
|
boolean |
isNullAt(int pos)
Because the specific row implementation such as BinaryRow uses the binary format.
|
boolean |
isPrimitiveArray() |
int |
numElements() |
void |
setBoolean(int pos,
boolean value)
Set boolean value.
|
void |
setByte(int pos,
byte value)
Set byte value.
|
void |
setDecimal(int pos,
Decimal value,
int precision)
Set the decimal column value.
|
void |
setDouble(int pos,
double value)
Set double value.
|
void |
setFloat(int pos,
float value)
Set float value.
|
void |
setInt(int pos,
int value)
Set int value.
|
void |
setLong(int pos,
long value)
Set long value.
|
void |
setNotNullAt(int pos) |
void |
setNullAt(int pos)
Set null to this field.
|
void |
setNullBoolean(int pos) |
void |
setNullByte(int pos) |
void |
setNullDouble(int pos) |
void |
setNullFloat(int pos) |
void |
setNullInt(int pos) |
void |
setNullLong(int pos) |
void |
setNullShort(int pos) |
void |
setObject(int pos,
Object value) |
void |
setShort(int pos,
short value)
Set short value.
|
void |
setTimestamp(int pos,
SqlTimestamp value,
int precision)
Set Timestamp value.
|
boolean[] |
toBooleanArray() |
byte[] |
toByteArray() |
double[] |
toDoubleArray() |
float[] |
toFloatArray() |
int[] |
toIntArray() |
long[] |
toLongArray() |
short[] |
toShortArray() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic GenericArray(Object arr, int numElements)
public GenericArray(Object arr, int numElements, boolean isPrimitiveArray)
public boolean isPrimitiveArray()
public Object getArray()
public int numElements()
numElements 在接口中 BaseArraypublic boolean isNullAt(int pos)
TypeGetterSettersisNullAt 在接口中 BaseArrayisNullAt 在接口中 TypeGetterSetterspublic void setNullAt(int pos)
TypeGetterSetterssetNullAt 在接口中 BaseArraysetNullAt 在接口中 TypeGetterSetterspublic void setNotNullAt(int pos)
setNotNullAt 在接口中 BaseArraypublic void setNullLong(int pos)
setNullLong 在接口中 BaseArraypublic void setNullInt(int pos)
setNullInt 在接口中 BaseArraypublic void setNullBoolean(int pos)
setNullBoolean 在接口中 BaseArraypublic void setNullByte(int pos)
setNullByte 在接口中 BaseArraypublic void setNullShort(int pos)
setNullShort 在接口中 BaseArraypublic void setNullFloat(int pos)
setNullFloat 在接口中 BaseArraypublic void setNullDouble(int pos)
setNullDouble 在接口中 BaseArraypublic boolean[] toBooleanArray()
toBooleanArray 在接口中 BaseArraypublic byte[] toByteArray()
toByteArray 在接口中 BaseArraypublic short[] toShortArray()
toShortArray 在接口中 BaseArraypublic int[] toIntArray()
toIntArray 在接口中 BaseArraypublic long[] toLongArray()
toLongArray 在接口中 BaseArraypublic float[] toFloatArray()
toFloatArray 在接口中 BaseArraypublic double[] toDoubleArray()
toDoubleArray 在接口中 BaseArraypublic boolean getBoolean(int pos)
TypeGetterSettersgetBoolean 在接口中 TypeGetterSetterspublic byte getByte(int pos)
TypeGetterSettersgetByte 在接口中 TypeGetterSetterspublic short getShort(int pos)
TypeGetterSettersgetShort 在接口中 TypeGetterSetterspublic int getInt(int pos)
TypeGetterSettersgetInt 在接口中 TypeGetterSetterspublic long getLong(int pos)
TypeGetterSettersgetLong 在接口中 TypeGetterSetterspublic float getFloat(int pos)
TypeGetterSettersgetFloat 在接口中 TypeGetterSetterspublic double getDouble(int pos)
TypeGetterSettersgetDouble 在接口中 TypeGetterSetterspublic byte[] getBinary(int pos)
TypeGetterSettersgetBinary 在接口中 TypeGetterSetterspublic BinaryString getString(int pos)
TypeGetterSettersgetString 在接口中 TypeGetterSetterspublic Decimal getDecimal(int pos, int precision, int scale)
TypeGetterSettersgetDecimal 在接口中 TypeGetterSetterspublic SqlTimestamp getTimestamp(int pos, int precision)
TypeGetterSettersgetTimestamp 在接口中 TypeGetterSetterspublic <T> BinaryGeneric<T> getGeneric(int pos)
TypeGetterSettersgetGeneric 在接口中 TypeGetterSetterspublic BaseRow getRow(int pos, int numFields)
TypeGetterSettersgetRow 在接口中 TypeGetterSetterspublic BaseArray getArray(int pos)
TypeGetterSettersgetArray 在接口中 TypeGetterSetterspublic BaseMap getMap(int pos)
TypeGetterSettersgetMap 在接口中 TypeGetterSetterspublic void setBoolean(int pos,
boolean value)
TypeGetterSetterssetBoolean 在接口中 TypeGetterSetterspublic void setByte(int pos,
byte value)
TypeGetterSetterssetByte 在接口中 TypeGetterSetterspublic void setShort(int pos,
short value)
TypeGetterSetterssetShort 在接口中 TypeGetterSetterspublic void setInt(int pos,
int value)
TypeGetterSetterssetInt 在接口中 TypeGetterSetterspublic void setLong(int pos,
long value)
TypeGetterSetterssetLong 在接口中 TypeGetterSetterspublic void setFloat(int pos,
float value)
TypeGetterSetterssetFloat 在接口中 TypeGetterSetterspublic void setDouble(int pos,
double value)
TypeGetterSetterssetDouble 在接口中 TypeGetterSetterspublic void setDecimal(int pos,
Decimal value,
int precision)
TypeGetterSettersNote: Precision is compact: can call setNullAt when decimal is null. Precision is not compact: can not call setNullAt when decimal is null, must call setDecimal(i, null, precision) because we need update var-length-part.
setDecimal 在接口中 TypeGetterSetterspublic void setTimestamp(int pos,
SqlTimestamp value,
int precision)
TypeGetterSettersNote: If precision is compact: can call setNullAt when SqlTimestamp value is null. Otherwise: can not call setNullAt when SqlTimestamp value is null, must call setTimestamp(ordinal, null, precision) because we need to update var-length-part.
setTimestamp 在接口中 TypeGetterSetterspublic Object getObject(int pos)
public void setObject(int pos,
Object value)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.