|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
StringMap
.
@Deprecated public interface TermMap
A map from terms to numbers (and possibly viceversa).
The possibility of retrieving terms can be checked for by calling hasTerms()
.
Method Summary | |
---|---|
int |
getNumber(CharSequence term)
Deprecated. Returns the ordinal number corresponding to the given term, or possibly (but not necessarily) -1 if the term was not indexed. |
CharSequence |
getTerm(int number)
Deprecated. Returns the term corresponding to the given ordinal number (optional operation). |
MutableString |
getTerm(int number,
MutableString term)
Deprecated. Writes in the given mutable string the term corresponding to the given ordinal number (optional operation). |
boolean |
hasTerms()
Deprecated. Returns true if this prefix map supports term retrieval. |
int |
size()
Deprecated. Returns the number of terms in this term map. |
Method Detail |
---|
int getNumber(CharSequence term)
We intentionally prefer “ordinal number” to “index” because of the obvious confusion that the latter term can cause.
term
- a term.
boolean hasTerms()
CharSequence getTerm(int number)
number
- a term ordinal number.
null
if the term was not indexed.MutableString getTerm(int number, MutableString term)
number
- 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.int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |