public abstract class VectorParser<M> extends Object
| Constructor and Description |
|---|
VectorParser(VectorType type) |
| Modifier and Type | Method and Description |
|---|---|
VectorType |
getType() |
<T> T |
parse(byte[] data,
int length,
Class<T> parsedClass) |
abstract M |
parseDefault(byte[] data,
int length) |
static String[] |
parseVectorString(byte[] input,
Integer length)
Parses a vector string byte array into an array of string values (trimming spaces and removing
brackets).
|
public VectorParser(VectorType type)
public <T> T parse(byte[] data,
int length,
Class<T> parsedClass)
public abstract M parseDefault(byte[] data, int length)
public VectorType getType()
public static String[] parseVectorString(byte[] input, Integer length)
input - the vector string byte array in the format "[value1, value2, value3...]"length - the vector lengthCopyright © 2025 SingleStore. All rights reserved.