Package | Description |
---|---|
com.datastax.oss.driver.api.core.data | |
com.datastax.oss.driver.api.core.type.codec | |
com.datastax.oss.driver.api.core.type.reflect |
Modifier and Type | Method and Description |
---|---|
static <V extends Number> |
CqlVector.from(String str,
TypeCodec<V> subtypeCodec)
Create a new CqlVector instance from the specified string representation.
|
default <ElementT extends Number> |
GettableById.getVector(CqlIdentifier id,
Class<ElementT> elementsClass)
Returns the value for the first occurrence of
id as a vector. |
default <ElementT extends Number> |
GettableByIndex.getVector(int i,
Class<ElementT> elementsClass)
Returns the
i th value as a vector. |
default <ElementT extends Number> |
GettableByName.getVector(String name,
Class<ElementT> elementsClass)
Returns the value for the first occurrence of
name as a vector. |
static <V extends Number> |
CqlVector.newInstance(List<V> list)
Create a new CqlVector that "wraps" an existing ArrayList.
|
static <V extends Number> |
CqlVector.newInstance(V... vals)
Create a new CqlVector containing the specified values.
|
CqlVector<T> |
CqlVector.subVector(int from,
int to)
Return a CqlVector consisting of the contents of a portion of this vector.
|
Modifier and Type | Method and Description |
---|---|
default <ElementT extends Number> |
SettableById.setVector(CqlIdentifier id,
CqlVector<ElementT> v,
Class<ElementT> elementsClass)
Sets the value for all occurrences of
id to the provided vector . |
default <ElementT extends Number> |
SettableByIndex.setVector(int i,
CqlVector<ElementT> v,
Class<ElementT> elementsClass)
Sets the
i th value to the provided vector. |
default <ElementT extends Number> |
SettableByName.setVector(String name,
CqlVector<ElementT> v,
Class<ElementT> elementsClass)
Sets the value for all occurrences of
name to the provided vector. |
Modifier and Type | Method and Description |
---|---|
static <SubtypeT extends Number> |
TypeCodecs.vectorOf(int dimensions,
TypeCodec<SubtypeT> subtypeCodec) |
static <SubtypeT extends Number> |
TypeCodecs.vectorOf(VectorType type,
TypeCodec<SubtypeT> subtypeCodec) |
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
GenericType.vectorOf(Class<T> elementType) |
static <T extends Number> |
GenericType.vectorOf(GenericType<T> elementType) |
Copyright © 2017–2023. All rights reserved.