Method | Description | |
---|---|---|
AddLabel ( FacetLabel label, int ordinal ) : void | ||
CompactLabelToOrdinal ( int initialCapacity, float loadFactor, int numHashArrays ) : System |
Sole constructor.
|
|
GetOrdinal ( FacetLabel label ) : int |
Method | Description | |
---|---|---|
AddLabel ( HashArray a, FacetLabel label, int hash, int ordinal ) : bool | ||
AddLabelOffset ( int hash, int cid, int knownOffset ) : void | ||
AddLabelOffsetToHashArray ( HashArray a, int hash, int ordinal, int knownOffset ) : bool | ||
CompactLabelToOrdinal ( ) : System | ||
DetermineCapacity ( int minCapacity, int initialCapacity ) : int | ||
Flush ( Stream stream ) : void | ||
GetMemoryUsage ( ) : int |
Returns an estimate of the amount of memory used by this table. Called only in this package. Memory is consumed mainly by three structures: the hash arrays, label repository and collision map.
|
|
GetOrdinal ( HashArray a, FacetLabel label, int hash ) : int | ||
Grow ( ) : void | ||
IndexFor ( int h, int length ) : int |
Returns index for hash code h.
|
|
Init ( ) : void | ||
Open ( |
Opens the file and reloads the CompactLabelToOrdinal. The file it expects is generated from the Flush(Stream) command.
|
|
StringHashCode ( Lucene.Net.Facet.Taxonomy.WriterCache.CharBlockArray labelRepository, int offset ) : int | ||
StringHashCode ( FacetLabel label ) : int |
public AddLabel ( FacetLabel label, int ordinal ) : void | ||
label | FacetLabel | |
ordinal | int | |
return | void |
public CompactLabelToOrdinal ( int initialCapacity, float loadFactor, int numHashArrays ) : System | ||
initialCapacity | int | |
loadFactor | float | |
numHashArrays | int | |
return | System |