Package org.apache.solr.util.vector
Class DenseVectorParser
- java.lang.Object
-
- org.apache.solr.util.vector.DenseVectorParser
-
- Direct Known Subclasses:
ByteDenseVectorParser,FloatDenseVectorParser
public abstract class DenseVectorParser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDenseVectorParser.BuilderPhase
-
Field Summary
Fields Modifier and Type Field Description protected DenseVectorParser.BuilderPhasebuilderPhaseprotected intdimensionprotected ObjectinputValue
-
Constructor Summary
Constructors Constructor Description DenseVectorParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddNumberElement(Number element)protected abstract voidaddStringElement(String element)protected voidcheckVectorDimension(int inputVectorDimension)protected abstract StringerrorMessage()byte[]getByteVector()float[]getFloatVector()protected voidparseIndexVector()protected voidparseQueryVector()protected voidparseVector()
-
-
-
Field Detail
-
builderPhase
protected DenseVectorParser.BuilderPhase builderPhase
-
dimension
protected int dimension
-
inputValue
protected Object inputValue
-
-
Method Detail
-
getFloatVector
public float[] getFloatVector()
-
getByteVector
public byte[] getByteVector()
-
parseVector
protected void parseVector()
-
parseIndexVector
protected void parseIndexVector()
-
parseQueryVector
protected void parseQueryVector()
-
checkVectorDimension
protected void checkVectorDimension(int inputVectorDimension)
-
addNumberElement
protected abstract void addNumberElement(Number element)
-
addStringElement
protected abstract void addStringElement(String element)
-
errorMessage
protected abstract String errorMessage()
-
-