Class TabletMergeabilityInfo

java.lang.Object
org.apache.accumulo.core.client.admin.TabletMergeabilityInfo

public class TabletMergeabilityInfo extends Object
Since:
4.0.0
  • Constructor Details

  • Method Details

    • getTabletMergeability

      public TabletMergeability getTabletMergeability()
      Returns:
      the TabletMergeability
    • getElapsed

      public Optional<Duration> getElapsed()
      If the TabletMergeability is configured with a delay this returns an estimate of the elapsed time since the delay was initially set. Returns optional.empty() if the tablet was configured with a TabletMergeability of never.
    • getRemaining

      public Optional<Duration> getRemaining()
      If the TabletMergeability is configured with a delay this returns an estimate of the remaining time since the delay was initially set. Returns optional.empty() if the tablet was configured with a TabletMergeability of never.
    • getDelay

      public Optional<Duration> getDelay()
      Returns an Optional duration of the configured TabletMergeability delay which is one of:
      • empty (never)
      • 0 (now)
      • positive delay
      Returns:
      the configured mergeability delay or empty if mergeability is NEVER
    • isMergeable

      public boolean isMergeable()
      Check if this tablet is eligible to be automatically merged.
      If TabletMergeability is set to "always", this will return true.
      If TabletMergeability is set to "never", this will return false.
      If TabletMergeability is configured with a delay, this will check if enough time has elapsed and return true if it has.
      Returns:
      true if the tablet is eligible for automatic merging, else false
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object