Package dev.vortex.jni
Class NativeArrayMethods
java.lang.Object
dev.vortex.jni.NativeArrayMethods
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddropArrowArray(long arrowArrayPtr) static voiddropArrowSchema(long arrowSchemaPtr) static voidexportToArrow(long pointer, long[] schemaPointer, long[] arrayPointer) static voidfree(long pointer) static BigDecimalgetBigDecimal(long pointer, int index) static byte[]getBinary(long pointer, int index) static booleangetBool(long pointer, int index) static bytegetByte(long pointer, int index) static longgetDataType(long pointer) static doublegetDouble(long pointer, int index) static longgetField(long pointer, int index) static floatgetFloat(long pointer, int index) static intgetInt(long pointer, int index) static longgetLen(long pointer) static longgetLong(long pointer, int index) static booleangetNull(long pointer, int index) static intgetNullCount(long pointer) static shortgetShort(long pointer, int index) static StringgetUTF8(long pointer, int index) static voidgetUTF8_ptr_len(long pointer, int index, long[] outPtr, int[] outLen) Raw-pointer variant ofgetUTF8(long, int)that accepts an array to hold a pointer and an output length.static longnbytes(long pointer) static longslice(long pointer, int start, int stop)
-
Method Details
-
nbytes
public static long nbytes(long pointer) -
exportToArrow
public static void exportToArrow(long pointer, long[] schemaPointer, long[] arrayPointer) -
dropArrowSchema
public static void dropArrowSchema(long arrowSchemaPtr) -
dropArrowArray
public static void dropArrowArray(long arrowArrayPtr) -
free
public static void free(long pointer) -
getLen
public static long getLen(long pointer) -
getDataType
public static long getDataType(long pointer) -
getField
public static long getField(long pointer, int index) -
slice
public static long slice(long pointer, int start, int stop) -
getNull
public static boolean getNull(long pointer, int index) -
getNullCount
public static int getNullCount(long pointer) -
getByte
public static byte getByte(long pointer, int index) -
getShort
public static short getShort(long pointer, int index) -
getInt
public static int getInt(long pointer, int index) -
getLong
public static long getLong(long pointer, int index) -
getBool
public static boolean getBool(long pointer, int index) -
getFloat
public static float getFloat(long pointer, int index) -
getDouble
public static double getDouble(long pointer, int index) -
getBigDecimal
-
getUTF8
-
getUTF8_ptr_len
public static void getUTF8_ptr_len(long pointer, int index, long[] outPtr, int[] outLen) Raw-pointer variant ofgetUTF8(long, int)that accepts an array to hold a pointer and an output length.For Java query engines that use Unsafe to manipulate native memory, this allows working with the string inside of the JVM without copying it into Java heap memory.
-
getBinary
public static byte[] getBinary(long pointer, int index)
-