java.lang.Object
org.elasticsearch.swisshash.SwissHash
- Direct Known Subclasses:
BytesRefSwissHash,LongLongSwissHash,LongSwissHash
Superclass of table to assign
int ids to various key types,
vending the ids in order they are added.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CircuitBreakerprotected intprotected intprotected intprotected intprotected final PageCacheRecyclerprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSwissHash(PageCacheRecycler recycler, CircuitBreaker breaker, int initialCapacity, float smallCoreFillFactor) -
Method Summary
Modifier and TypeMethodDescriptionabstract SwissHash.Itriterator()Build an iterator to walk all values and ids.final longsize()How many entries are in theLongSwissHash.abstract SwissHash.Statusstatus()Performance information hopefully useful for debugging.
-
Field Details
-
recycler
-
breaker
-
capacity
protected int capacity -
mask
protected int mask -
nextGrowSize
protected int nextGrowSize -
size
protected int size -
growCount
protected int growCount
-
-
Constructor Details
-
SwissHash
protected SwissHash(PageCacheRecycler recycler, CircuitBreaker breaker, int initialCapacity, float smallCoreFillFactor)
-
-
Method Details
-
size
public final long size()How many entries are in theLongSwissHash. -
status
Performance information hopefully useful for debugging. -
iterator
Build an iterator to walk all values and ids.
-