org.apache.hadoop.hbase.client.coprocessor
Class Exec
java.lang.Object
org.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.ipc.Invocation
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)
Exec
public Exec()
Exec
public Exec(org.apache.hadoop.conf.Configuration configuration,
byte[] row,
Class<? extends CoprocessorProtocol> protocol,
Method method,
Object[] parameters)
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 © 2011 The Apache Software Foundation. All Rights Reserved.