public class IndexLookup extends MinimalMap<String,IndexField>
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_CACHE
Flag to pass to
IndexField#get(String, flags) if you require
positions in the returned IndexFieldTerm . |
static int |
FLAG_FREQUENCIES
Flag to pass to
IndexField#get(String, flags) if you require
frequencies in the returned IndexFieldTerm . |
static int |
FLAG_OFFSETS
Flag to pass to
IndexField#get(String, flags) if you require
offsets in the returned IndexFieldTerm . |
static int |
FLAG_PAYLOADS
Flag to pass to
IndexField#get(String, flags) if you require
payloads in the returned IndexFieldTerm . |
static int |
FLAG_POSITIONS
Flag to pass to
IndexField#get(String, flags) if you require
positions in the returned IndexFieldTerm . |
Constructor and Description |
---|
IndexLookup(com.google.common.collect.ImmutableMap.Builder<String,Object> builder) |
Modifier and Type | Method and Description |
---|---|
IndexField |
get(Object key) |
int |
getDocId() |
org.apache.lucene.search.IndexSearcher |
getIndexSearcher() |
org.apache.lucene.index.IndexReader |
getParentReader() |
org.apache.lucene.index.IndexReaderContext |
getReaderContext() |
int |
maxDoc() |
int |
numDeletedDocs() |
int |
numDocs() |
void |
setNextDocId(int docId) |
protected void |
setNextDocIdInFields() |
void |
setNextReader(org.apache.lucene.index.AtomicReaderContext context) |
protected void |
setReaderInFields() |
org.apache.lucene.index.Fields |
termVectors() |
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final int FLAG_OFFSETS
IndexField#get(String, flags)
if you require
offsets in the returned IndexFieldTerm
.public static final int FLAG_PAYLOADS
IndexField#get(String, flags)
if you require
payloads in the returned IndexFieldTerm
.public static final int FLAG_FREQUENCIES
IndexField#get(String, flags)
if you require
frequencies in the returned IndexFieldTerm
. Frequencies might be
returned anyway for some lucene codecs even if this flag is no set.public static final int FLAG_POSITIONS
IndexField#get(String, flags)
if you require
positions in the returned IndexFieldTerm
.public static final int FLAG_CACHE
IndexField#get(String, flags)
if you require
positions in the returned IndexFieldTerm
.public int numDocs()
public int maxDoc()
public int numDeletedDocs()
public void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
protected void setReaderInFields()
public void setNextDocId(int docId)
protected void setNextDocIdInFields()
public IndexField get(Object key)
public org.apache.lucene.index.Fields termVectors() throws IOException
IOException
public int getDocId()
public org.apache.lucene.index.IndexReader getParentReader()
public org.apache.lucene.search.IndexSearcher getIndexSearcher()
public org.apache.lucene.index.IndexReaderContext getReaderContext()
Copyright © 2009–2015. All rights reserved.