org.apache.lucene.search
Interface ExtendedFieldCache
-
- All Superinterfaces:
- FieldCache
public interface ExtendedFieldCache extends FieldCache
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceExtendedFieldCache.DoubleParserstatic interfaceExtendedFieldCache.LongParser-
Nested classes/interfaces inherited from interface org.apache.lucene.search.FieldCache
FieldCache.ByteParser, FieldCache.FloatParser, FieldCache.IntParser, FieldCache.ShortParser, FieldCache.StringIndex
-
-
Field Summary
Fields Modifier and Type Field and Description static ExtendedFieldCacheEXT_DEFAULT-
Fields inherited from interface org.apache.lucene.search.FieldCache
DEFAULT, STRING_INDEX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description double[]getDoubles(IndexReader reader, java.lang.String field)Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas integers and returns an array of sizereader.maxDoc()of the value each document has in the given field.double[]getDoubles(IndexReader reader, java.lang.String field, ExtendedFieldCache.DoubleParser parser)Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas doubles and returns an array of sizereader.maxDoc()of the value each document has in the given field.long[]getLongs(IndexReader reader, java.lang.String field)Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas longs and returns an array of sizereader.maxDoc()of the value each document has in the given field.long[]getLongs(IndexReader reader, java.lang.String field, ExtendedFieldCache.LongParser parser)Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas longs and returns an array of sizereader.maxDoc()of the value each document has in the given field.-
Methods inherited from interface org.apache.lucene.search.FieldCache
getAuto, getBytes, getBytes, getCustom, getFloats, getFloats, getInts, getInts, getShorts, getShorts, getStringIndex, getStrings
-
-
-
-
Field Detail
-
EXT_DEFAULT
static final ExtendedFieldCache EXT_DEFAULT
-
-
Method Detail
-
getLongs
long[] getLongs(IndexReader reader, java.lang.String field) throws java.io.IOException
Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas longs and returns an array of sizereader.maxDoc()of the value each document has in the given field.- Parameters:
reader- Used to get field values.field- Which field contains the longs.- Returns:
- The values in the given field for each document.
- Throws:
java.io.IOException- If any error occurs.
-
getLongs
long[] getLongs(IndexReader reader, java.lang.String field, ExtendedFieldCache.LongParser parser) throws java.io.IOException
Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas longs and returns an array of sizereader.maxDoc()of the value each document has in the given field.- Parameters:
reader- Used to get field values.field- Which field contains the longs.parser- Computes integer for string values.- Returns:
- The values in the given field for each document.
- Throws:
java.io.IOException- If any error occurs.
-
getDoubles
double[] getDoubles(IndexReader reader, java.lang.String field) throws java.io.IOException
Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas integers and returns an array of sizereader.maxDoc()of the value each document has in the given field.- Parameters:
reader- Used to get field values.field- Which field contains the doubles.- Returns:
- The values in the given field for each document.
- Throws:
java.io.IOException- If any error occurs.
-
getDoubles
double[] getDoubles(IndexReader reader, java.lang.String field, ExtendedFieldCache.DoubleParser parser) throws java.io.IOException
Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldas doubles and returns an array of sizereader.maxDoc()of the value each document has in the given field.- Parameters:
reader- Used to get field values.field- Which field contains the doubles.parser- Computes integer for string values.- Returns:
- The values in the given field for each document.
- Throws:
java.io.IOException- If any error occurs.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG