|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.mg4j.index.TermMaps.SynchronizedTermMap
protected static class TermMaps.SynchronizedTermMap
| Field Summary | |
|---|---|
protected TermMap |
termMap
|
| Constructor Summary | |
|---|---|
TermMaps.SynchronizedTermMap(TermMap termMap)
|
|
| Method Summary | |
|---|---|
int |
getNumber(CharSequence term)
Returns the ordinal number corresponding to the given term, or possibly (but not necessarily) -1 if the term was not indexed. |
CharSequence |
getTerm(int index)
Returns the term corresponding to the given ordinal number (optional operation). |
MutableString |
getTerm(int index,
MutableString term)
Writes in the given mutable string the term corresponding to the given ordinal number (optional operation). |
boolean |
hasTerms()
Returns true if this prefix map supports term retrieval. |
int |
size()
Returns the number of terms in this term map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final TermMap termMap
| Constructor Detail |
|---|
public TermMaps.SynchronizedTermMap(TermMap termMap)
| Method Detail |
|---|
public int size()
TermMap
size in interface TermMappublic int getNumber(CharSequence term)
TermMapWe intentionally prefer “ordinal number” to “index” because of the obvious confusion that the latter term can cause.
getNumber in interface TermMapterm - a term.
public MutableString getTerm(int index,
MutableString term)
TermMap
getTerm in interface TermMapindex - a term ordinal number.term - a mutable string that will be filled with the corresponding term.
term, or possibly (but not necessarily) null if the term was not indexed.public CharSequence getTerm(int index)
TermMap
getTerm in interface TermMapindex - a term ordinal number.
null if the term was not indexed.public boolean hasTerms()
TermMap
hasTerms in interface TermMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||