Methods Summary |
---|
public java.lang.Object | getAuto(org.apache.lucene.index.IndexReader reader, java.lang.String field)Checks the internal cache for an appropriate entry, and if
none is found reads field to see if it contains integers, floats
or strings, and then calls one of the other methods in this class to get the
values. For string values, a StringIndex is returned. After
calling this method, there is an entry in the cache for both
type AUTO and the actual found type.
|
public byte[] | getBytes(org.apache.lucene.index.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 a single byte and returns an array
of size reader.maxDoc() of the value each document
has in the given field.
|
public byte[] | getBytes(org.apache.lucene.index.IndexReader reader, java.lang.String field, org.apache.lucene.search.FieldCache$ByteParser parser)Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in field as bytes and returns an array of
size reader.maxDoc() of the value each document has in the
given field.
|
public java.lang.Comparable[] | getCustom(org.apache.lucene.index.IndexReader reader, java.lang.String field, org.apache.lucene.search.SortComparator comparator)Checks the internal cache for an appropriate entry, and if none
is found reads the terms out of field and calls the given SortComparator
to get the sort values. A hit in the cache will happen if reader ,
field , and comparator are the same (using equals() )
as a previous call to this method.
|
public float[] | getFloats(org.apache.lucene.index.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 floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field.
|
public float[] | getFloats(org.apache.lucene.index.IndexReader reader, java.lang.String field, org.apache.lucene.search.FieldCache$FloatParser parser)Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field.
|
public int[] | getInts(org.apache.lucene.index.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.
|
public int[] | getInts(org.apache.lucene.index.IndexReader reader, java.lang.String field, org.apache.lucene.search.FieldCache$IntParser parser)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.
|
public short[] | getShorts(org.apache.lucene.index.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 shorts and returns an array
of size reader.maxDoc() of the value each document
has in the given field.
|
public short[] | getShorts(org.apache.lucene.index.IndexReader reader, java.lang.String field, org.apache.lucene.search.FieldCache$ShortParser parser)Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in field as shorts and returns an array of
size reader.maxDoc() of the value each document has in the
given field.
|
public org.apache.lucene.search.FieldCache$StringIndex | getStringIndex(org.apache.lucene.index.IndexReader reader, java.lang.String field)Checks the internal cache for an appropriate entry, and if none
is found reads the term values in field and returns
an array of them in natural order, along with an array telling
which element in the term array each document uses.
|
public java.lang.String[] | getStrings(org.apache.lucene.index.IndexReader reader, java.lang.String field)Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in field and returns an array
of size reader.maxDoc() containing the value each document
has in the given field.
|