Class MultiAction

java.lang.Object
org.apache.hadoop.hbase.client.MultiAction

@Private public final class MultiAction extends Object
Container for Actions (i.e. Get, Delete, or Put), which are grouped by regionName. Intended to be used with AsyncProcess.
  • Field Details

    • actions

      A map of regions to lists of puts/gets/deletes for that region. Package visible.
    • nonceGroup

      private long nonceGroup
  • Constructor Details

  • Method Details

    • size

      public int size()
      Get the total number of Actions
      Returns:
      total number of Actions for all groups in this container.
    • add

      public void add(byte[] regionName, Action a)
      Add an Action to this container based on it's regionName. If the regionName is wrong, the initial execution will fail, but will be automatically retried after looking up the correct region.
    • add

      public void add(byte[] regionName, List<Action> actionList)
      Add an Action to this container based on it's regionName. If the regionName is wrong, the initial execution will fail, but will be automatically retried after looking up the correct region.
    • setNonceGroup

      public void setNonceGroup(long nonceGroup)
    • getRegions

      public Set<byte[]> getRegions()
    • hasNonceGroup

      public boolean hasNonceGroup()
    • getNonceGroup

      public long getNonceGroup()
    • getPriority

      public int getPriority()