|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.mg4j.index.TermMaps.SynchronizedPrefixMap
protected static class TermMaps.SynchronizedPrefixMap
| Field Summary | |
|---|---|
protected PrefixMap |
prefixMap
|
| Constructor Summary | |
|---|---|
TermMaps.SynchronizedPrefixMap(PrefixMap prefixMap)
|
|
| Method Summary | |
|---|---|
Interval |
getInterval(CharSequence prefix)
Returns the interval of terms starting with the given prefix. |
CharSequence |
getPrefix(Interval interval)
Returns the maximum prefix common to all terms in the given nonempty interval (optional operation). |
MutableString |
getPrefix(Interval interval,
MutableString prefix)
Writes in the given mutable string the maximum prefix common to all terms in the given nonempty interval (optional operation). |
boolean |
hasPrefixes()
Returns true if this prefix map supports prefix retrieval. |
int |
size()
Returns the number of terms in this prefix map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final PrefixMap prefixMap
| Constructor Detail |
|---|
public TermMaps.SynchronizedPrefixMap(PrefixMap prefixMap)
| Method Detail |
|---|
public Interval getInterval(CharSequence prefix)
PrefixMap
getInterval in interface PrefixMapprefix - a prefix.
prefix
(Intervals.EMPTY_INTERVAL in case no term starts with prefix).
public MutableString getPrefix(Interval interval,
MutableString prefix)
PrefixMap
getPrefix in interface PrefixMapinterval - an interval.prefix - a mutable string that will be filled with the maximum prefix common to all terms in the given nonempty interval.
prefix.public CharSequence getPrefix(Interval interval)
PrefixMap
getPrefix in interface PrefixMapinterval - an interval.
public int size()
PrefixMap
size in interface PrefixMappublic boolean hasPrefixes()
PrefixMap
hasPrefixes in interface PrefixMap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||