|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.indexer.dictionary.ArrayDictionaryIterator
public class ArrayDictionaryIterator
A dictionary iterator for an array of terms.
Constructor Summary | |
---|---|
ArrayDictionaryIterator(DiskDictionary dd,
QueryEntry[] entries)
|
|
ArrayDictionaryIterator(DiskDictionary dd,
QueryEntry[] entries,
int begin,
int end)
|
|
ArrayDictionaryIterator(DiskDictionary dd,
QueryEntry[] entries,
int begin,
int end,
PostingsInput[] buffInputs)
|
|
ArrayDictionaryIterator(DiskDictionary dd,
QueryEntry[] entries,
PostingsInput[] buffInputs)
|
Method Summary | |
---|---|
int |
estimateSize()
Estimates the number of documents in the postings for the entries represented by this iterator |
QueryEntry |
get(int id)
Gets an entry for a specific ID from the dictionary that this iterator is iterating through. |
QueryEntry |
get(java.lang.Object name)
Gets an entry for a specific name from the dictionary that this iterator is iterating through. |
int |
getNEntries()
Gets the number of entries that will be returned by this iterator. |
boolean |
hasNext()
Describe hasNext method here. |
QueryEntry |
next()
Describe next method here. |
void |
remove()
Describe remove method here. |
void |
setActualOnly(boolean actualOnly)
Modifies the iterator so that it only returns entries whose names have actually occurred in the indexed material. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayDictionaryIterator(DiskDictionary dd, QueryEntry[] entries)
public ArrayDictionaryIterator(DiskDictionary dd, QueryEntry[] entries, PostingsInput[] buffInputs)
public ArrayDictionaryIterator(DiskDictionary dd, QueryEntry[] entries, int begin, int end)
public ArrayDictionaryIterator(DiskDictionary dd, QueryEntry[] entries, int begin, int end, PostingsInput[] buffInputs)
Method Detail |
---|
public void remove()
remove
method here.
remove
in interface java.util.Iterator<QueryEntry>
public QueryEntry next()
next
method here.
next
in interface java.util.Iterator<QueryEntry>
Object
valuepublic boolean hasNext()
hasNext
method here.
hasNext
in interface java.util.Iterator<QueryEntry>
boolean
valuepublic int estimateSize()
estimateSize
in interface DictionaryIterator
public int getNEntries()
DictionaryIterator
getNEntries
in interface DictionaryIterator
public void setActualOnly(boolean actualOnly)
DictionaryIterator
true
.
Note that this option really only makes sense for dictionaries that use cased entries.
setActualOnly
in interface DictionaryIterator
actualOnly
- if true
only entries with names
that actually occurred in the indexed material will be returned.
If false
all entries will be returned.public QueryEntry get(java.lang.Object name)
DictionaryIterator
get
in interface DictionaryIterator
public QueryEntry get(int id)
DictionaryIterator
get
in interface DictionaryIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |