public class Vector extends Object
Supported element types:
DataType.INT8_VECTORINT8_VECTOR (8-bit signed integer)
DataType.INT16_VECTOR (16-bit signed integer)
DataType.INT32_VECTOR (32-bit signed integer)
DataType.INT64_VECTOR (64-bit signed integer)
DataType.FLOAT32_VECTOR (32-bit floating-point number, default)
DataType.FLOAT64_VECTOR (64-bit floating-point number)
For further details, see the SingleStore Vector Type.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Vector |
fromData(byte[] values,
int length,
com.singlestore.jdbc.client.DataType dataType,
boolean isBinary) |
int |
getLength() |
com.singlestore.jdbc.client.DataType |
getType()
Get Vector type.
|
byte[] |
getValues()
Get byte array of Vector value.
|
int |
hashCode() |
boolean |
isBinary() |
static Vector |
ofFloat32Values(float[] values) |
static Vector |
ofFloat64Values(double[] values) |
static Vector |
ofInt16Values(short[] values) |
static Vector |
ofInt32Values(int[] values) |
static Vector |
ofInt64Values(long[] values) |
static Vector |
ofInt8Values(byte[] values) |
String |
stringValue() |
byte[] |
toByteArray() |
double[] |
toDoubleArray() |
float[] |
toFloatArray() |
int[] |
toIntArray() |
long[] |
toLongArray() |
short[] |
toShortArray() |
String |
toString() |
String[] |
toStringArray() |
public static Vector fromData(byte[] values, int length, com.singlestore.jdbc.client.DataType dataType, boolean isBinary)
public static Vector ofFloat64Values(double[] values)
public static Vector ofFloat32Values(float[] values)
public static Vector ofInt8Values(byte[] values)
public static Vector ofInt16Values(short[] values)
public static Vector ofInt32Values(int[] values)
public static Vector ofInt64Values(long[] values)
public byte[] getValues()
public boolean isBinary()
public com.singlestore.jdbc.client.DataType getType()
public int getLength()
public String stringValue()
public String[] toStringArray()
public float[] toFloatArray()
public double[] toDoubleArray()
public byte[] toByteArray()
public short[] toShortArray()
public int[] toIntArray()
public long[] toLongArray()
Copyright © 2025 SingleStore. All rights reserved.