Package io.tiledb.java.api
Class Util
- java.lang.Object
-
- io.tiledb.java.api.Util
-
public class Util extends java.lang.Object
Contains helper-functions
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
bytesToStrings(long[] offsets, byte[] data)
Converts an input array of bytes to a list of Strings, according to the offsetsstatic int
castLongToInt(long num)
static boolean
checkBigIntegerRange(java.math.BigInteger bigInteger)
Checks if a given bigInteger value is in the UInt64 rangestatic Datatype
getFieldDatatype(Array array, java.lang.String fieldName)
Returns the Datatype of the input field
-
-
-
Method Detail
-
bytesToStrings
public static java.lang.String[] bytesToStrings(long[] offsets, byte[] data)
Converts an input array of bytes to a list of Strings, according to the offsets- Parameters:
offsets
- The offsets arraydata
- THe data array- Returns:
- The list of Strings
-
castLongToInt
public static int castLongToInt(long num) throws TileDBError
- Throws:
TileDBError
-
checkBigIntegerRange
public static boolean checkBigIntegerRange(java.math.BigInteger bigInteger) throws TileDBError
Checks if a given bigInteger value is in the UInt64 range- Parameters:
bigInteger
- the bigInteger- Returns:
- true if the range is ok
- Throws:
TileDBError
-
getFieldDatatype
public static Datatype getFieldDatatype(Array array, java.lang.String fieldName) throws TileDBError
Returns the Datatype of the input field- Parameters:
array
- The TileDB arrayfieldName
- The field name- Returns:
- The Datatype
- Throws:
TileDBError
- A TileDBError
-
-