public class CollisionMap extends Object
CompactLabelToOrdinal
for
details.Constructor and Description |
---|
CollisionMap(org.apache.lucene.facet.taxonomy.writercache.cl2o.CharBlockArray labelRepository) |
CollisionMap(int initialCapacity,
org.apache.lucene.facet.taxonomy.writercache.cl2o.CharBlockArray labelRepository) |
Modifier and Type | Method and Description |
---|---|
int |
addLabel(CategoryPath label,
int hash,
int cid) |
int |
addLabel(CategoryPath label,
int prefixLen,
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 |
get(CategoryPath label,
int prefixLen,
int hash) |
int |
size() |
public CollisionMap(org.apache.lucene.facet.taxonomy.writercache.cl2o.CharBlockArray labelRepository)
public CollisionMap(int initialCapacity, org.apache.lucene.facet.taxonomy.writercache.cl2o.CharBlockArray labelRepository)
public int size()
public int capacity()
public int get(CategoryPath label, int hash)
public int get(CategoryPath label, int prefixLen, int hash)
public int addLabel(CategoryPath label, int hash, int cid)
public int addLabel(CategoryPath label, int prefixLen, int hash, int cid)
public void addLabelOffset(int hash, int offset, int cid)