public class VectorWithUnsignedIndices
extends java.lang.Object
The VectorWithUnsignedIndices class contains the following fields:
- id: the identifier of the vector
- values: the dense vector values
- metadata: the metadata associated with the vector
- sparseValuesWithUnsignedIndices: the sparse values associated with the vector, using unsigned 32-bit integer indices
The class provides constructors to create VectorWithUnsignedIndices objects, as well as getter and setter
methods for each of the fields.
| Constructor and Description |
|---|
VectorWithUnsignedIndices()
Constructs an empty
VectorWithUnsignedIndices object. |
VectorWithUnsignedIndices(java.lang.String id,
java.util.List<java.lang.Float> values)
Constructs a
VectorWithUnsignedIndices object with the given identifier and dense vector values. |
VectorWithUnsignedIndices(java.lang.String id,
java.util.List<java.lang.Float> values,
com.google.protobuf.Struct metadata,
SparseValuesWithUnsignedIndices sparseValuesWithUnsignedIndices)
Constructs a
VectorWithUnsignedIndices object with the given identifier, dense vector values, metadata,
and sparse values with unsigned 32-bit integer indices. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the identifier of the vector.
|
com.google.protobuf.Struct |
getMetadata()
Returns the metadata associated with the vector.
|
SparseValuesWithUnsignedIndices |
getSparseValuesWithUnsignedIndices()
Returns the sparse values associated with the vector, using unsigned 32-bit integer indices.
|
java.util.List<java.lang.Float> |
getValuesList()
Returns The dense vector values.
|
void |
setId(java.lang.String id)
Sets the identifier of the vector.
|
void |
setMetadata(com.google.protobuf.Struct metadata)
Sets the metadata associated with the vector.
|
void |
setSparseValuesWithUnsignedIndices(SparseValuesWithUnsignedIndices sparseValuesWithUnsignedIndices)
Sets the sparse values associated with the vector, using unsigned 32-bit integer indices.
|
void |
setValues(java.util.List<java.lang.Float> values)
Sets the dense vector values.
|
public VectorWithUnsignedIndices()
VectorWithUnsignedIndices object.public VectorWithUnsignedIndices(java.lang.String id,
java.util.List<java.lang.Float> values)
VectorWithUnsignedIndices object with the given identifier and dense vector values.id - The identifier of the vectorvalues - The dense vector valuespublic VectorWithUnsignedIndices(java.lang.String id,
java.util.List<java.lang.Float> values,
com.google.protobuf.Struct metadata,
SparseValuesWithUnsignedIndices sparseValuesWithUnsignedIndices)
VectorWithUnsignedIndices object with the given identifier, dense vector values, metadata,
and sparse values with unsigned 32-bit integer indices.id - The identifier of the vectorvalues - The dense vector valuesmetadata - The metadata associated with the vectorsparseValuesWithUnsignedIndices - The sparse values associated with the vector, using unsigned 32-bit integer indicespublic java.lang.String getId()
public void setId(java.lang.String id)
id - The new identifierpublic java.util.List<java.lang.Float> getValuesList()
public void setValues(java.util.List<java.lang.Float> values)
values - The new list of valuespublic com.google.protobuf.Struct getMetadata()
public void setMetadata(com.google.protobuf.Struct metadata)
metadata - The new metadatapublic SparseValuesWithUnsignedIndices getSparseValuesWithUnsignedIndices()
SparseValuesWithUnsignedIndices objectpublic void setSparseValuesWithUnsignedIndices(SparseValuesWithUnsignedIndices sparseValuesWithUnsignedIndices)
sparseValuesWithUnsignedIndices - the new SparseValuesWithUnsignedIndices object