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 class
DenseVectorParser.BuilderPhase
-
Field Summary
Fields Modifier and Type Field Description protected DenseVectorParser.BuilderPhase
builderPhase
protected int
dimension
protected Object
inputValue
-
Constructor Summary
Constructors Constructor Description DenseVectorParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addNumberElement(Number element)
protected abstract void
addStringElement(String element)
protected void
checkVectorDimension(int inputVectorDimension)
protected abstract String
errorMessage()
byte[]
getByteVector()
float[]
getFloatVector()
protected void
parseIndexVector()
protected void
parseQueryVector()
protected void
parseVector()
-
-
-
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()
-
-