Class LegacyFieldType

  • All Implemented Interfaces:
    org.apache.lucene.index.IndexableFieldType

    @Deprecated
    public final class LegacyFieldType
    extends org.apache.lucene.document.FieldType
    Deprecated.
    Please switch to PointValues instead
    FieldType extension with support for legacy numerics
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyFieldType()
      Deprecated.
      Create a new FieldType with default properties.
      LegacyFieldType​(LegacyFieldType ref)
      Deprecated.
      Create a new mutable LegacyFieldType with all of the properties from ref
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      int numericPrecisionStep()
      Deprecated.
      Please switch to PointValues instead
      LegacyNumericType numericType()
      Deprecated.
      Please switch to PointValues instead
      void setNumericPrecisionStep​(int precisionStep)
      Deprecated.
      Please switch to PointValues instead
      void setNumericType​(LegacyNumericType type)
      Deprecated.
      Please switch to PointValues instead
      String toString()
      Deprecated.
      Prints a Field for human consumption.
      • Methods inherited from class org.apache.lucene.document.FieldType

        checkIfFrozen, docValuesType, freeze, getAttributes, indexOptions, omitNorms, pointDimensionCount, pointIndexDimensionCount, pointNumBytes, putAttribute, setDimensions, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, setVectorAttributes, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, vectorDimension, vectorEncoding, vectorSimilarityFunction
    • Constructor Detail

      • LegacyFieldType

        public LegacyFieldType​(LegacyFieldType ref)
        Deprecated.
        Create a new mutable LegacyFieldType with all of the properties from ref
      • LegacyFieldType

        public LegacyFieldType()
        Deprecated.
        Create a new FieldType with default properties.
    • Method Detail

      • setNumericType

        @Deprecated
        public void setNumericType​(LegacyNumericType type)
        Deprecated.
        Please switch to PointValues instead
        Specifies the field's numeric type.
        Parameters:
        type - numeric type, or null if the field has no numeric type.
        Throws:
        IllegalStateException - if this FieldType is frozen against future modifications.
        See Also:
        numericType()
      • setNumericPrecisionStep

        @Deprecated
        public void setNumericPrecisionStep​(int precisionStep)
        Deprecated.
        Please switch to PointValues instead
        Sets the numeric precision step for the field.
        Parameters:
        precisionStep - numeric precision step for the field
        Throws:
        IllegalArgumentException - if precisionStep is less than 1.
        IllegalStateException - if this FieldType is frozen against future modifications.
        See Also:
        numericPrecisionStep()
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class org.apache.lucene.document.FieldType
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class org.apache.lucene.document.FieldType
      • toString

        public String toString()
        Deprecated.
        Prints a Field for human consumption.
        Overrides:
        toString in class org.apache.lucene.document.FieldType