public interface ExtendedFieldCache extends FieldCache
Modifier and Type | Interface and Description |
---|---|
static interface |
ExtendedFieldCache.DoubleParser |
static interface |
ExtendedFieldCache.LongParser |
FieldCache.ByteParser, FieldCache.FloatParser, FieldCache.IntParser, FieldCache.ShortParser, FieldCache.StringIndex
Modifier and Type | Field and Description |
---|---|
static ExtendedFieldCache |
EXT_DEFAULT |
DEFAULT, STRING_INDEX
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 in
field as integers and returns an array
of size reader.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 in
field as doubles and returns an array of
size reader.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 in
field as longs and returns an array
of size reader.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 in
field as longs and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
getAuto, getBytes, getBytes, getCustom, getFloats, getFloats, getInts, getInts, getShorts, getShorts, getStringIndex, getStrings
static final ExtendedFieldCache EXT_DEFAULT
long[] getLongs(IndexReader reader, java.lang.String field) throws java.io.IOException
field
as longs and returns an array
of size reader.maxDoc()
of the value each document
has in the given field.reader
- Used to get field values.field
- Which field contains the longs.java.io.IOException
- If any error occurs.long[] getLongs(IndexReader reader, java.lang.String field, ExtendedFieldCache.LongParser parser) throws java.io.IOException
field
as longs and returns an array of
size reader.maxDoc()
of the value each document has in the
given field.reader
- Used to get field values.field
- Which field contains the longs.parser
- Computes integer for string values.java.io.IOException
- If any error occurs.double[] getDoubles(IndexReader reader, java.lang.String field) throws java.io.IOException
field
as integers and returns an array
of size reader.maxDoc()
of the value each document
has in the given field.reader
- Used to get field values.field
- Which field contains the doubles.java.io.IOException
- If any error occurs.double[] getDoubles(IndexReader reader, java.lang.String field, ExtendedFieldCache.DoubleParser parser) throws java.io.IOException
field
as doubles and returns an array of
size reader.maxDoc()
of the value each document has in the
given field.reader
- Used to get field values.field
- Which field contains the doubles.parser
- Computes integer for string values.java.io.IOException
- If any error occurs.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.