Package org.apache.lucene.search
Interface FieldCache.Parser
-
- All Known Subinterfaces:
FieldCache.ByteParser
,FieldCache.DoubleParser
,FieldCache.FloatParser
,FieldCache.IntParser
,FieldCache.LongParser
,FieldCache.ShortParser
- Enclosing interface:
- FieldCache
public static interface FieldCache.Parser
Marker interface as super-interface to all parsers. It is used to specify a custom parser toSortField(String, FieldCache.Parser)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TermsEnum
termsEnum(Terms terms)
-
-
-
Method Detail
-
termsEnum
TermsEnum termsEnum(Terms terms) throws IOException
Pulls aTermsEnum
from the givenTerms
. This method allows certain parsers to filter the actual TermsEnum before the field cache is filled.- Parameters:
terms
- theTerms
instance to create theTermsEnum
from.- Returns:
- a possibly filtered
TermsEnum
instance, this method must not returnnull
. - Throws:
IOException
- if anIOException
occurs
-
-