Class TabletMergeability
java.lang.Object
org.apache.accumulo.core.client.admin.TabletMergeability
- All Implemented Interfaces:
Serializable
- Since:
- 4.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic TabletMergeabilityCreates aTabletMergeabilitythat signals a tablet has a delay to a point in the future before it is automatically eligible to be merged.static TabletMergeabilityalways()Signifies that a tablet is eligible now to be automatically mergedbooleangetDelay()Returns an Optional duration of the delay which is one of: empty (never) 0 (now) positive delayinthashCode()booleanisAlways()Determines if the configured delay signals a tablet is always eligible to be automatically merged now.booleanisNever()Determines if the configured delay signals a tablet is never eligible to be automatically merged.static TabletMergeabilitynever()Signifies that a tablet is never eligible to be automatically merged.toString()
-
Method Details
-
isNever
public boolean isNever()Determines if the configured delay signals a tablet is never eligible to be automatically merged.- Returns:
- true if never mergeable, else false
-
isAlways
public boolean isAlways()Determines if the configured delay signals a tablet is always eligible to be automatically merged now. (Has a delay of 0)- Returns:
- true if always mergeable now, else false
-
getDelay
Returns an Optional duration of the delay which is one of:- empty (never)
- 0 (now)
- positive delay
- Returns:
- the configured mergeability delay or empty if mergeability is NEVER
-
equals
-
hashCode
public int hashCode() -
toString
-
never
Signifies that a tablet is never eligible to be automatically merged.- Returns:
- a
TabletMergeabilitywith an empty delay signaling never merge
-
always
Signifies that a tablet is eligible now to be automatically merged- Returns:
- a
TabletMergeabilitywith a delay of 0 signaling never merge
-
after
Creates aTabletMergeabilitythat signals a tablet has a delay to a point in the future before it is automatically eligible to be merged. The duration must be greater than or equal to 0. A delay of 0 means a Tablet is immediately eligible to be merged.- Parameters:
delay- the duration of the delay- Returns:
- a
TabletMergeabilityfrom the given delay.
-