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

java.lang.Object
  extended by org.apache.hadoop.hbase.client.coprocessor.ExecResult
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ExecResult
extends Object
implements org.apache.hadoop.io.Writable

Represents the return value from a Exec invocation. This simply wraps the value for easier HbaseObjectWritable serialization.

This class is used internally by the HBase client code to properly serialize responses from CoprocessorProtocol method invocations. It should not be used directly by clients.

See Also:
Exec, 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)

Constructor Summary
ExecResult()
           
ExecResult(byte[] region, Object value)
           
 
Method Summary
 byte[] getRegionName()
           
 Object getValue()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecResult

public ExecResult()

ExecResult

public ExecResult(byte[] region,
                  Object value)
Method Detail

getRegionName

public byte[] getRegionName()

getValue

public Object getValue()

write

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

readFields

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


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