Module org.elasticsearch.server
Class ByteMultiDenseVector
java.lang.Object
org.elasticsearch.script.field.vectors.ByteMultiDenseVector
- All Implemented Interfaces:
MultiDenseVector
- Direct Known Subclasses:
BitMultiDenseVector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected final int
protected final Iterator
<byte[]> Fields inherited from interface org.elasticsearch.script.field.vectors.MultiDenseVector
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionByteMultiDenseVector
(Iterator<byte[]> vectorValues, org.apache.lucene.util.BytesRef magnitudesBytes, int numVecs, int dims) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.script.field.vectors.MultiDenseVector
checkDimensions
-
Field Details
-
vectorValues
-
numVecs
protected final int numVecs -
dims
protected final int dims
-
-
Constructor Details
-
ByteMultiDenseVector
public ByteMultiDenseVector(Iterator<byte[]> vectorValues, org.apache.lucene.util.BytesRef magnitudesBytes, int numVecs, int dims)
-
-
Method Details
-
getVectors
- Specified by:
getVectors
in interfaceMultiDenseVector
-
getMagnitudes
public float[] getMagnitudes()- Specified by:
getMagnitudes
in interfaceMultiDenseVector
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMultiDenseVector
-
getDims
public int getDims()- Specified by:
getDims
in interfaceMultiDenseVector
-
size
public int size()- Specified by:
size
in interfaceMultiDenseVector
-