|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.facet.taxonomy.writercache.CollisionMap
public class CollisionMap
HashMap to store colliding labels. See CompactLabelToOrdinal
for
details.
Method Summary | |
---|---|
int |
addLabel(FacetLabel label,
int hash,
int cid)
Add another mapping. |
void |
addLabelOffset(int hash,
int offset,
int cid)
This method does not check if the same value is already in the map because we pass in an char-array offset, so so we now that we're in resize-mode here. |
int |
capacity()
How many slots are allocated. |
int |
get(FacetLabel label,
int hash)
Return the mapping, or LabelToOrdinal.INVALID_ORDINAL if the label isn't
recognized. |
int |
size()
How many mappings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int size()
public int capacity()
public int get(FacetLabel label, int hash)
LabelToOrdinal.INVALID_ORDINAL
if the label isn't
recognized.
public int addLabel(FacetLabel label, int hash, int cid)
public void addLabelOffset(int hash, int offset, int cid)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |