public class StringLargeArray extends LargeArray
LargeArray.DeallocatorisConstant, LARGEST_SUBARRAY, length, parent, ptr, sizeof, type| Constructor and Description |
|---|
StringLargeArray(long length)
Creates new instance of this class.
|
StringLargeArray(long length,
int maxStringLength)
Creates new instance of this class.
|
StringLargeArray(long length,
int maxStringLength,
boolean zeroNativeMemory)
Creates new instance of this class.
|
StringLargeArray(long length,
String constantValue)
Creates a constant array.
|
StringLargeArray(String[] data)
Creates new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
StringLargeArray |
clone()
Returns a deep copy of this instance.
|
boolean |
equals(Object o) |
String |
get(long i)
Returns a value at index i.
|
boolean |
getBoolean(long i)
Returns a boolean value at index i.
|
boolean[] |
getBooleanData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns boolean data.
|
boolean[] |
getBooleanData(boolean[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
byte |
getByte(long i)
Returns a signed byte value at index i.
|
byte[] |
getByteData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns byte data.
|
byte[] |
getByteData(byte[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
String[] |
getData()
Returns a reference to the internal data array.
|
double |
getDouble(long i)
Returns a double value at index i.
|
double[] |
getDoubleData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns double data.
|
double[] |
getDoubleData(double[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
float |
getFloat(long i)
Returns a float value at index i.
|
float[] |
getFloatData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns float data.
|
float[] |
getFloatData(float[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
String |
getFromNative(long i)
Returns a value at index i.
|
int |
getInt(long i)
Returns an int value at index i.
|
int[] |
getIntData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns int data.
|
int[] |
getIntData(int[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
long |
getLong(long i)
Returns a long value at index i.
|
long[] |
getLongData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns long data.
|
long[] |
getLongData(long[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
int |
getMaxStringLength()
Returns maximal length of each element.
|
short |
getShort(long i)
Returns a short value at index i.
|
short[] |
getShortData()
If the size of the array is smaller than LargeArray.LARGEST_SUBARRAY, then this
method returns short data.
|
short[] |
getShortData(short[] a,
long startPos,
long endPos,
long step)
If (endPos - startPos) / step is smaller than LargeArray.LARGEST_SUBARRAY, then
this method returns selected elements of this object.
|
short |
getUnsignedByte(long i)
Returns an unsigned byte value at index i.
|
int |
hashCode() |
void |
set_safe(long i,
Object o)
Sets a value at index i.
|
void |
set(long i,
Object o)
Sets a value at index i.
|
void |
setBoolean(long i,
boolean value)
Sets a boolean value at index i.
|
void |
setByte(long i,
byte value)
Sets a byte value at index i.
|
void |
setDouble(long i,
double value)
Sets a double value at index i.
|
void |
setFloat(long i,
float value)
Sets a float value at index i.
|
void |
setInt(long i,
int value)
Sets an int value at index i.
|
void |
setLong(long i,
long value)
Sets a long value at index i.
|
void |
setShort(long i,
short value)
Sets a short value at index i.
|
void |
setToNative(long i,
Object o)
Sets a value at index i.
|
void |
setUnsignedByte(long i,
short value)
Sets an unsigned byte value at index i.
|
get_safe, getBoolean_safe, getByte_safe, getDouble_safe, getFloat_safe, getInt_safe, getLong_safe, getMaxSizeOf32bitArray, getShort_safe, getType, getUnsignedByte_safe, isConstant, isLarge, isNumeric, length, nativePointer, setBoolean_safe, setByte_safe, setDouble_safe, setFloat_safe, setInt_safe, setLong_safe, setMaxSizeOf32bitArray, setShort_safe, setUnsignedByte_safe, zeroNativeMemorypublic StringLargeArray(long length)
length - number of elementspublic StringLargeArray(long length,
int maxStringLength)
length - number of elementsmaxStringLength - maximal length of the string, it is ignored when number of elements is smaller than LargeArray.getMaxSizeOf43bitArray().public StringLargeArray(long length,
int maxStringLength,
boolean zeroNativeMemory)
length - number of elementsmaxStringLength - maximal length of the string, it is ignored when number of elements is smaller than LargeArray.getMaxSizeOf43bitArray().zeroNativeMemory - if true, then the native memory is zeroed.public StringLargeArray(long length,
String constantValue)
length - number of elementsconstantValue - valuepublic StringLargeArray(String[] data)
data - data array, this reference is used internally.public StringLargeArray clone()
clone in class LargeArraypublic boolean equals(Object o)
equals in class LargeArraypublic int hashCode()
hashCode in class LargeArraypublic final String get(long i)
LargeArrayget in class LargeArrayi - an indexpublic final String getFromNative(long i)
LargeArraygetFromNative in class LargeArrayi - indexpublic final boolean getBoolean(long i)
LargeArraygetBoolean in class LargeArrayi - an indexpublic final byte getByte(long i)
LargeArraygetByte in class LargeArrayi - an indexpublic final short getUnsignedByte(long i)
LargeArraygetUnsignedByte in class LargeArrayi - an indexpublic final short getShort(long i)
LargeArraygetShort in class LargeArrayi - an indexpublic final int getInt(long i)
LargeArraygetInt in class LargeArrayi - an indexpublic final long getLong(long i)
LargeArraygetLong in class LargeArrayi - an indexpublic final float getFloat(long i)
LargeArraygetFloat in class LargeArrayi - an indexpublic final double getDouble(long i)
LargeArraygetDouble in class LargeArrayi - an indexpublic final String[] getData()
LargeArraygetData in class LargeArraypublic final boolean[] getBooleanData()
LargeArraygetBooleanData in class LargeArraypublic final boolean[] getBooleanData(boolean[] a,
long startPos,
long endPos,
long step)
LargeArraygetBooleanData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final byte[] getByteData()
LargeArraygetByteData in class LargeArraypublic final byte[] getByteData(byte[] a,
long startPos,
long endPos,
long step)
LargeArraygetByteData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final short[] getShortData()
LargeArraygetShortData in class LargeArraypublic final short[] getShortData(short[] a,
long startPos,
long endPos,
long step)
LargeArraygetShortData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final int[] getIntData()
LargeArraygetIntData in class LargeArraypublic final int[] getIntData(int[] a,
long startPos,
long endPos,
long step)
LargeArraygetIntData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final long[] getLongData()
LargeArraygetLongData in class LargeArraypublic final long[] getLongData(long[] a,
long startPos,
long endPos,
long step)
LargeArraygetLongData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final float[] getFloatData()
LargeArraygetFloatData in class LargeArraypublic final float[] getFloatData(float[] a,
long startPos,
long endPos,
long step)
LargeArraygetFloatData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final double[] getDoubleData()
LargeArraygetDoubleData in class LargeArraypublic final double[] getDoubleData(double[] a,
long startPos,
long endPos,
long step)
LargeArraygetDoubleData in class LargeArraya - the array into which the elements are to be stored, if it is big
enough; otherwise, a new array of is allocated for this purpose.startPos - starting position (included)endPos - ending position (excluded)step - step sizepublic final void setToNative(long i,
Object o)
LargeArraysetToNative in class LargeArrayi - indexo - value to setpublic final void set(long i,
Object o)
LargeArrayset in class LargeArrayi - indexo - value to setpublic final void set_safe(long i,
Object o)
LargeArrayset_safe in class LargeArrayi - indexo - value to setpublic final void setBoolean(long i,
boolean value)
LargeArraysetBoolean in class LargeArrayi - indexvalue - value to setpublic final void setByte(long i,
byte value)
LargeArraysetByte in class LargeArrayi - indexvalue - value to setpublic final void setUnsignedByte(long i,
short value)
LargeArraysetUnsignedByte in class LargeArrayi - indexvalue - value to setpublic final void setShort(long i,
short value)
LargeArraysetShort in class LargeArrayi - indexvalue - value to setpublic final void setInt(long i,
int value)
LargeArraysetInt in class LargeArrayi - indexvalue - value to setpublic final void setLong(long i,
long value)
LargeArraysetLong in class LargeArrayi - indexvalue - value to setpublic final void setFloat(long i,
float value)
LargeArraysetFloat in class LargeArrayi - indexvalue - value to setpublic final void setDouble(long i,
double value)
LargeArraysetDouble in class LargeArrayi - indexvalue - value to setpublic int getMaxStringLength()
Copyright © 2015. All rights reserved.