Module org.elasticsearch.server
Class RankVectorsScriptDocValues
java.lang.Object
java.util.AbstractCollection<org.apache.lucene.util.BytesRef>
java.util.AbstractList<org.apache.lucene.util.BytesRef>
org.elasticsearch.index.fielddata.ScriptDocValues<org.apache.lucene.util.BytesRef>
org.elasticsearch.index.mapper.vectors.RankVectorsScriptDocValues
- All Implemented Interfaces:
Iterable<org.apache.lucene.util.BytesRef>,Collection<org.apache.lucene.util.BytesRef>,List<org.apache.lucene.util.BytesRef>,SequencedCollection<org.apache.lucene.util.BytesRef>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
ScriptDocValues.BaseGeometry<T extends SpatialPoint,V>, ScriptDocValues.Booleans, ScriptDocValues.BytesRefs, ScriptDocValues.Dates, ScriptDocValues.Doubles, ScriptDocValues.DoublesSupplier, ScriptDocValues.Geometry, ScriptDocValues.GeometrySupplier<T extends SpatialPoint, V>, ScriptDocValues.GeoPoints, ScriptDocValues.Longs, ScriptDocValues.Strings, ScriptDocValues.StringsSupplier, ScriptDocValues.Supplier<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RankVectorsScriptDocValues.RankVectorsSupplierstatic final StringFields inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
supplierFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionRankVectorsScriptDocValues(RankVectorsScriptDocValues.RankVectorsSupplier supplier, int dims) -
Method Summary
Methods inherited from class org.elasticsearch.index.fielddata.ScriptDocValues
add, getSupplier, remove, replaceAll, set, sort, throwIfBeyondLength, throwIfEmptyMethods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, spliterator, toArray, toArray
-
Field Details
-
MISSING_VECTOR_FIELD_MESSAGE
- See Also:
-
dvSupplier
-
-
Constructor Details
-
RankVectorsScriptDocValues
public RankVectorsScriptDocValues(RankVectorsScriptDocValues.RankVectorsSupplier supplier, int dims)
-
-
Method Details
-
dims
public int dims() -
getVectorValues
Get rank-vectors's value as an array of floats -
getMagnitudes
public float[] getMagnitudes()Get dense vector's magnitude -
get
public org.apache.lucene.util.BytesRef get(int index) - Specified by:
getin interfaceList<org.apache.lucene.util.BytesRef>- Specified by:
getin classAbstractList<org.apache.lucene.util.BytesRef>
-
size
public int size()- Specified by:
sizein interfaceCollection<org.apache.lucene.util.BytesRef>- Specified by:
sizein interfaceList<org.apache.lucene.util.BytesRef>- Specified by:
sizein classAbstractCollection<org.apache.lucene.util.BytesRef>
-