Class ScalarQuantizedDenseVectorField

All Implemented Interfaces:
FloatValueFieldType, NumericValueFieldType

public class ScalarQuantizedDenseVectorField extends DenseVectorField
  • Field Details

  • Constructor Details

    • ScalarQuantizedDenseVectorField

      public ScalarQuantizedDenseVectorField()
    • ScalarQuantizedDenseVectorField

      public ScalarQuantizedDenseVectorField(int dimension, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, int bits, Float confidenceInterval, boolean compress)
  • Method Details

    • init

      public void init(IndexSchema schema, Map<String,String> args)
      Description copied from class: PointField
      NOTE: This method can be removed completely when PointField.TEST_HACK_IGNORE_USELESS_TRIEFIELD_ARGS is removed
      Overrides:
      init in class DenseVectorField
    • buildKnnVectorsFormat

      public org.apache.lucene.codecs.KnnVectorsFormat buildKnnVectorsFormat()
      Overrides:
      buildKnnVectorsFormat in class DenseVectorField
    • checkSchemaField

      public void checkSchemaField(SchemaField field) throws org.apache.solr.common.SolrException
      Description copied from class: FieldType
      Check's SchemaField instances constructed using this field type to ensure that they are valid.

      This method is called by the SchemaField constructor to check that its initialization does not violate any fundamental requirements of the FieldType. Subclasses may choose to throw a SolrException if invariants are violated by the SchemaField.

      Overrides:
      checkSchemaField in class DenseVectorField
      Throws:
      org.apache.solr.common.SolrException
    • getBits

      public int getBits()
    • useCompression

      public boolean useCompression()
    • getConfidenceInterval

      public Float getConfidenceInterval()