Package org.apache.solr.util.vector
Class FloatDenseVectorParser
- java.lang.Object
-
- org.apache.solr.util.vector.DenseVectorParser
-
- org.apache.solr.util.vector.FloatDenseVectorParser
-
public class FloatDenseVectorParser extends DenseVectorParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.util.vector.DenseVectorParser
DenseVectorParser.BuilderPhase
-
-
Field Summary
-
Fields inherited from class org.apache.solr.util.vector.DenseVectorParser
builderPhase, dimension, inputValue
-
-
Constructor Summary
Constructors Constructor Description FloatDenseVectorParser(int dimension, Object inputValue, DenseVectorParser.BuilderPhase builderPhase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addNumberElement(Number element)
protected void
addStringElement(String element)
protected String
errorMessage()
float[]
getFloatVector()
-
Methods inherited from class org.apache.solr.util.vector.DenseVectorParser
checkVectorDimension, getByteVector, parseIndexVector, parseQueryVector, parseVector
-
-
-
-
Constructor Detail
-
FloatDenseVectorParser
public FloatDenseVectorParser(int dimension, Object inputValue, DenseVectorParser.BuilderPhase builderPhase)
-
-
Method Detail
-
getFloatVector
public float[] getFloatVector()
- Overrides:
getFloatVector
in classDenseVectorParser
-
addNumberElement
protected void addNumberElement(Number element)
- Specified by:
addNumberElement
in classDenseVectorParser
-
addStringElement
protected void addStringElement(String element)
- Specified by:
addStringElement
in classDenseVectorParser
-
errorMessage
protected String errorMessage()
- Specified by:
errorMessage
in classDenseVectorParser
-
-