Class TabletMergeability

java.lang.Object
org.apache.accumulo.core.client.admin.TabletMergeability
All Implemented Interfaces:
Serializable

public class TabletMergeability extends Object implements Serializable
Since:
4.0.0
See Also:
  • 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

      public Optional<Duration> 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • never

      public static TabletMergeability never()
      Signifies that a tablet is never eligible to be automatically merged.
      Returns:
      a TabletMergeability with an empty delay signaling never merge
    • always

      public static TabletMergeability always()
      Signifies that a tablet is eligible now to be automatically merged
      Returns:
      a TabletMergeability with a delay of 0 signaling never merge
    • after

      public static TabletMergeability after(Duration delay)
      Creates a TabletMergeability that 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 TabletMergeability from the given delay.