Package org.apache.datasketches.theta
Enum UpdateReturnState
- All Implemented Interfaces:
Serializable,Comparable<UpdateReturnState>,Constable
public enum UpdateReturnState extends Enum<UpdateReturnState>
- Author:
- Lee Rhodes
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ConcurrentBufferInsertedThe hash was inserted into the local concurrent buffer, but has not yet been propagated to the concurrent shared sketch.ConcurrentPropagatedThe hash has been propagated to the concurrent shared sketch.InsertedCountIncrementedThe hash was accepted into the sketch and the retained count was incremented.InsertedCountIncrementedRebuiltThe hash was accepted into the sketch, the retained count was incremented.InsertedCountIncrementedResizedThe hash was accepted into the sketch, the retained count was incremented.InsertedCountNotIncrementedThe hash was accepted into the sketch and the retained count was not incremented.RejectedDuplicateThe hash was rejected as a duplicate.RejectedNullOrEmptyThe hash was rejected because it was null or empty.RejectedOverThetaThe hash was rejected because the value was negative, zero or greater than theta. -
Method Summary
Modifier and Type Method Description static UpdateReturnStatevalueOf(String name)Returns the enum constant of this type with the specified name.static UpdateReturnState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
InsertedCountIncremented
The hash was accepted into the sketch and the retained count was incremented. -
InsertedCountIncrementedResized
The hash was accepted into the sketch, the retained count was incremented. The current cache was out of room and resized larger based on the Resize Factor. -
InsertedCountIncrementedRebuilt
The hash was accepted into the sketch, the retained count was incremented. The current cache was out of room and at maximum size, so the cache was rebuilt. -
InsertedCountNotIncremented
The hash was accepted into the sketch and the retained count was not incremented. -
ConcurrentBufferInserted
The hash was inserted into the local concurrent buffer, but has not yet been propagated to the concurrent shared sketch. -
ConcurrentPropagated
The hash has been propagated to the concurrent shared sketch. This does not reflect the action taken by the shared sketch. -
RejectedDuplicate
The hash was rejected as a duplicate. -
RejectedNullOrEmpty
The hash was rejected because it was null or empty. -
RejectedOverTheta
The hash was rejected because the value was negative, zero or greater than theta.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-