Class ConcurrentVectorValues
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.vector.ConcurrentVectorValues
- All Implemented Interfaces:
io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>,RamAwareVectorValues
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongadd(int ordinal, float[] vector) return approximate bytes used by the new vectorcopy()intbooleanintsize()float[]vectorValue(int i)
-
Constructor Details
-
ConcurrentVectorValues
public ConcurrentVectorValues(int dimensions)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceio.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
-
dimension
public int dimension()- Specified by:
dimensionin interfaceio.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
-
vectorValue
public float[] vectorValue(int i) - Specified by:
vectorValuein interfaceRamAwareVectorValues- Specified by:
vectorValuein interfaceio.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
-
add
public long add(int ordinal, float[] vector) return approximate bytes used by the new vector -
copy
- Specified by:
copyin interfaceio.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
-