java.lang.Object
org.elasticsearch.swisshash.SwissHash.Status
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject
- Enclosing class:
SwissHash
public abstract static class SwissHash.Status
extends Object
implements NamedWriteable, ToXContentObject
Performance information about the
SwissHash hopefully useful for debugging.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatus(int growCount, int capacity, int size, int nextGrowSize) protectedStatus(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()The size of theSwissHash.intThe number of times thisSwissHashhas grown.intWhensizegrows to this number the hash will grow again.intsize()Number of entries added to theSwissHash.final XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) protected abstract voidtoXContentFragment(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableNameMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
Status
protected Status(int growCount, int capacity, int size, int nextGrowSize) -
Status
- Throws:
IOException
-
-
Method Details
-
growCount
public int growCount()The number of times thisSwissHashhas grown. -
capacity
public int capacity()The size of theSwissHash. -
size
public int size()Number of entries added to theSwissHash. -
nextGrowSize
public int nextGrowSize()Whensizegrows to this number the hash will grow again. -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toXContentFragment
protected abstract void toXContentFragment(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-