org.apache.hadoop.hbase.client
Class Action<R>

java.lang.Object
  extended by org.apache.hadoop.hbase.client.Action<R>
All Implemented Interfaces:
Comparable<R>

@InterfaceAudience.Private
public class Action<R>
extends Object
implements Comparable<R>

A Get, Put, Increment, Append, or Delete associated with it's region. Used internally by HTable.batch(java.util.List, java.lang.Object[]) to associate the action with it's region and maintain the index from the original request.


Constructor Summary
Action(Row action, int originalIndex)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 Row getAction()
           
 long getNonce()
           
 int getOriginalIndex()
           
 int hashCode()
           
 boolean hasNonce()
           
 void setNonce(long nonce)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Action

public Action(Row action,
              int originalIndex)
Method Detail

setNonce

public void setNonce(long nonce)

hasNonce

public boolean hasNonce()

getAction

public Row getAction()

getOriginalIndex

public int getOriginalIndex()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable<R>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getNonce

public long getNonce()


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.