public class LargeArrayUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static sun.misc.Unsafe |
UNSAFE
An object for performing low-level, unsafe operations.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
arraycopy(boolean[] src,
int srcPos,
LogicLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(byte[] src,
int srcPos,
ByteLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(byte[] src,
int srcPos,
UnsignedByteLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(ByteLargeArray src,
long srcPos,
ByteLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(ComplexDoubleLargeArray src,
long srcPos,
ComplexDoubleLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(ComplexFloatLargeArray src,
long srcPos,
ComplexFloatLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(double[] src,
int srcPos,
ComplexDoubleLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(double[] src,
int srcPos,
DoubleLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(DoubleLargeArray src,
long srcPos,
DoubleLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(float[] src,
int srcPos,
ComplexFloatLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(float[] src,
int srcPos,
FloatLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(FloatLargeArray src,
long srcPos,
FloatLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(int[] src,
int srcPos,
IntLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(IntLargeArray src,
long srcPos,
IntLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(LargeArray src,
long srcPos,
LargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(LogicLargeArray src,
long srcPos,
LogicLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(long[] src,
int srcPos,
LongLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(LongLargeArray src,
long srcPos,
LongLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(Object[] src,
int srcPos,
ObjectLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(ObjectLargeArray src,
long srcPos,
ObjectLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(Object src,
long srcPos,
LargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(short[] src,
int srcPos,
ShortLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(short[] src,
int srcPos,
UnsignedByteLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(ShortLargeArray src,
long srcPos,
ShortLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(String[] src,
int srcPos,
StringLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(StringLargeArray src,
long srcPos,
StringLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static void |
arraycopy(UnsignedByteLargeArray src,
long srcPos,
UnsignedByteLargeArray dest,
long destPos,
long length)
Copies an array from the specified source array, beginning at the
specified position, to the specified position of the destination array.
|
static LargeArray |
convert(LargeArray src,
LargeArrayType type)
Converts LargeArray to a given type.
|
static LargeArray |
create(LargeArrayType type,
long length)
Creates a new instance of LargeArray.
|
static LargeArray |
create(LargeArrayType type,
long length,
boolean zeroNativeMemory)
Creates a new instance of LargeArray
|
static LargeArray |
createConstant(LargeArrayType type,
long length,
Object value)
Creates a new constant LargeArray.
|
static LargeArray |
generateRandom(LargeArrayType type,
long length)
Generates a random LargeArray
|
static LargeArray |
select(LargeArray src,
LogicLargeArray mask)
Returns all elements of the specified source array for which the corresponding mask element is equal to 1.
|
public static final sun.misc.Unsafe UNSAFE
public static void arraycopy(LargeArray src, long srcPos, LargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(Object src, long srcPos, LargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(LogicLargeArray src, long srcPos, LogicLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(boolean[] src,
int srcPos,
LogicLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(ByteLargeArray src, long srcPos, ByteLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(byte[] src,
int srcPos,
ByteLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(UnsignedByteLargeArray src, long srcPos, UnsignedByteLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(byte[] src,
int srcPos,
UnsignedByteLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(short[] src,
int srcPos,
UnsignedByteLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(ShortLargeArray src, long srcPos, ShortLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(short[] src,
int srcPos,
ShortLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(IntLargeArray src, long srcPos, IntLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(int[] src,
int srcPos,
IntLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(LongLargeArray src, long srcPos, LongLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(long[] src,
int srcPos,
LongLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(FloatLargeArray src, long srcPos, FloatLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(float[] src,
int srcPos,
FloatLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(DoubleLargeArray src, long srcPos, DoubleLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(double[] src,
int srcPos,
DoubleLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(ComplexFloatLargeArray src, long srcPos, ComplexFloatLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(float[] src,
int srcPos,
ComplexFloatLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(ComplexDoubleLargeArray src, long srcPos, ComplexDoubleLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(double[] src,
int srcPos,
ComplexDoubleLargeArray dest,
long destPos,
long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(StringLargeArray src, long srcPos, StringLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(String[] src, int srcPos, StringLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(ObjectLargeArray src, long srcPos, ObjectLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static void arraycopy(Object[] src, int srcPos, ObjectLargeArray dest, long destPos, long length)
src - the source array.srcPos - starting position in the source array.dest - the destination array.destPos - starting position in the destination data.length - the number of array elements to be copied.public static LargeArray createConstant(LargeArrayType type, long length, Object value)
type - the type of constant LargeArraylength - the length of constant LargeArrayvalue - the value of constant LargeArraypublic static LargeArray create(LargeArrayType type, long length)
type - the type of LargeArraylength - number of elementspublic static LargeArray create(LargeArrayType type, long length, boolean zeroNativeMemory)
type - the type of LargeArraylength - number of elementszeroNativeMemory - if true, then the native memory is zeroedpublic static LargeArray generateRandom(LargeArrayType type, long length)
type - the type of LargeArraylength - number of elementspublic static LargeArray convert(LargeArray src, LargeArrayType type)
src - the source arraytype - the type of LargeArraypublic static LargeArray select(LargeArray src, LogicLargeArray mask)
src - the source arraymask - the mask array
Copyright © 2015. All rights reserved.