Interface FieldCache.Parser

All Known Implementing Classes:
FieldCache.PointParser
Enclosing interface:
FieldCache

public static interface FieldCache.Parser
interface to all parsers. It is used to parse different numeric types.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    parseValue(org.apache.lucene.util.BytesRef term)
    Parse's this field's value
    org.apache.lucene.index.TermsEnum
    termsEnum(org.apache.lucene.index.Terms terms)
    Deprecated.
    index with Points instead
  • Method Details

    • termsEnum

      @Deprecated org.apache.lucene.index.TermsEnum termsEnum(org.apache.lucene.index.Terms terms) throws IOException
      Deprecated.
      index with Points instead
      Pulls a TermsEnum from the given Terms. This method allows certain parsers to filter the actual TermsEnum before the field cache is filled.
      Parameters:
      terms - the Terms instance to create the TermsEnum from.
      Returns:
      a possibly filtered TermsEnum instance, this method must not return null.
      Throws:
      IOException - if an IOException occurs
    • parseValue

      long parseValue(org.apache.lucene.util.BytesRef term)
      Parse's this field's value