org.apache.lucene.facet.taxonomy.writercache.cl2o
Class CollisionMap
java.lang.Object
org.apache.lucene.facet.taxonomy.writercache.cl2o.CollisionMap
public class CollisionMap
- extends Object
HashMap to store colliding labels. See CompactLabelToOrdinal
for
details.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Method Summary |
int |
addLabel(CategoryPath label,
int hash,
int cid)
|
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()
|
int |
get(CategoryPath label,
int hash)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
size
public int size()
capacity
public int capacity()
get
public int get(CategoryPath label,
int hash)
addLabel
public int addLabel(CategoryPath label,
int hash,
int cid)
addLabelOffset
public 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.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.