Class FieldCache.PointParser

  • All Implemented Interfaces:
    FieldCache.Parser
    Enclosing interface:
    FieldCache

    public abstract static class FieldCache.PointParser
    extends Object
    implements FieldCache.Parser
    Base class for points parsers. These parsers do not use the inverted index, but instead uninvert point data. This abstraction can be cleaned up when Parser.termsEnum is removed.
    • Constructor Detail

      • PointParser

        public PointParser()
    • Method Detail

      • termsEnum

        public final org.apache.lucene.index.TermsEnum termsEnum​(org.apache.lucene.index.Terms terms)
                                                          throws IOException
        Description copied from interface: FieldCache.Parser
        Pulls a TermsEnum from the given Terms. This method allows certain parsers to filter the actual TermsEnum before the field cache is filled.
        Specified by:
        termsEnum in interface FieldCache.Parser
        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