|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.mg4j.index.AbstractTermMap
StringMap and related classes.
@Deprecated public abstract class AbstractTermMap
An abstract implementation of a map from term to term indices.
Subclasses need just to implement TermMap.getNumber(CharSequence) (and,
possibly, getTerm(int)).
| Constructor Summary | |
|---|---|
AbstractTermMap()
Deprecated. |
|
| Method Summary | |
|---|---|
int |
getIndex(CharSequence term)
Deprecated. |
CharSequence |
getTerm(int index)
Deprecated. Returns the term corresponding to the given ordinal number (optional operation). |
MutableString |
getTerm(int index,
MutableString term)
Deprecated. Writes in the given mutable string the term corresponding to the given ordinal number (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.mg4j.index.TermMap |
|---|
getNumber, hasTerms, size |
| Constructor Detail |
|---|
public AbstractTermMap()
| Method Detail |
|---|
@Deprecated public int getIndex(CharSequence term)
public CharSequence getTerm(int index)
TermMap
getTerm in interface TermMapindex - a term ordinal number.
null if the term was not indexed.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||