Class IndexingChain.ReservedField<T extends IndexableField>

    • Constructor Detail

      • ReservedField

        private ReservedField​(T delegate)
    • Method Detail

      • getDelegate

        T getDelegate()
      • tokenStream

        public TokenStream tokenStream​(Analyzer analyzer,
                                       TokenStream reuse)
        Description copied from interface: IndexableField
        Creates the TokenStream used for indexing this field. If appropriate, implementations should use the given Analyzer to create the TokenStreams.
        Specified by:
        tokenStream in interface IndexableField
        Parameters:
        analyzer - Analyzer that should be used to create the TokenStreams from
        reuse - TokenStream for a previous instance of this field name. This allows custom field types (like StringField and NumericField) that do not use the analyzer to still have good performance. Note: the passed-in type may be inappropriate, for example if you mix up different types of Fields for the same field name. So it's the responsibility of the implementation to check.
        Returns:
        TokenStream value for indexing the document. Should always return a non-null value if the field is to be indexed
      • stringValue

        public java.lang.String stringValue()
        Description copied from interface: IndexableField
        Non-null if this field has a string value
        Specified by:
        stringValue in interface IndexableField
      • readerValue

        public java.io.Reader readerValue()
        Description copied from interface: IndexableField
        Non-null if this field has a Reader value
        Specified by:
        readerValue in interface IndexableField
      • numericValue

        public java.lang.Number numericValue()
        Description copied from interface: IndexableField
        Non-null if this field has a numeric value
        Specified by:
        numericValue in interface IndexableField
      • storedValue

        public StoredValue storedValue()
        Description copied from interface: IndexableField
        Stored value. This method is called to populate stored fields and must return a non-null value if the field stored.
        Specified by:
        storedValue in interface IndexableField
      • invertableType

        public InvertableType invertableType()
        Description copied from interface: IndexableField
        Describes how this field should be inverted. This must return a non-null value if the field indexes terms and postings.
        Specified by:
        invertableType in interface IndexableField