org.apache.hadoop.hbase.client.coprocessor
Class Exec

java.lang.Object
  extended by org.apache.hadoop.io.VersionedWritable
      extended by org.apache.hadoop.hbase.ipc.Invocation
          extended by org.apache.hadoop.hbase.client.coprocessor.Exec
All Implemented Interfaces:
Comparable<Row>, org.apache.hadoop.conf.Configurable, Row, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<Row>

public class Exec
extends Invocation
implements Row

Represents an arbitrary method invocation against a Coprocessor instance. In order for a coprocessor implementation to be remotely callable by clients, it must define and implement a CoprocessorProtocol subclass. Only methods defined in the CoprocessorProtocol interface will be callable by clients.

This class is used internally by HTable.coprocessorExec(Class, byte[], byte[], org.apache.hadoop.hbase.client.coprocessor.Batch.Call, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback) to wrap the CoprocessorProtocol method invocations requested in RPC calls. It should not be used directly by HBase clients.

See Also:
ExecResult, HTable.coprocessorExec(Class, byte[], byte[], org.apache.hadoop.hbase.client.coprocessor.Batch.Call), HTable.coprocessorExec(Class, byte[], byte[], org.apache.hadoop.hbase.client.coprocessor.Batch.Call, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)

Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.ipc.Invocation
conf, methodName, parameterClasses, parameters
 
Constructor Summary
Exec()
           
Exec(org.apache.hadoop.conf.Configuration configuration, byte[] row, Class<? extends CoprocessorProtocol> protocol, Method method, Object[] parameters)
           
Exec(org.apache.hadoop.conf.Configuration configuration, Class<? extends CoprocessorProtocol> protocol, Method method, Object[] parameters)
           
 
Method Summary
 int compareTo(Row row)
           
 Class<? extends CoprocessorProtocol> getProtocol()
           
 String getProtocolName()
           
 byte[] getRow()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.hbase.ipc.Invocation
getClientMethodsHash, getConf, getMethodName, getParameterClasses, getParameters, getRpcVersion, getVersion, setConf, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exec

public Exec()

Exec

public Exec(org.apache.hadoop.conf.Configuration configuration,
            Class<? extends CoprocessorProtocol> protocol,
            Method method,
            Object[] parameters)

Exec

public Exec(org.apache.hadoop.conf.Configuration configuration,
            byte[] row,
            Class<? extends CoprocessorProtocol> protocol,
            Method method,
            Object[] parameters)
Method Detail

getProtocolName

public String getProtocolName()

getProtocol

public Class<? extends CoprocessorProtocol> getProtocol()

getRow

public byte[] getRow()
Specified by:
getRow in interface Row
Returns:
The row.

compareTo

public int compareTo(Row row)
Specified by:
compareTo in interface Comparable<Row>

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class Invocation
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class Invocation
Throws:
IOException


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