org.apache.accumulo.server.tabletserver
Class MemValue

java.lang.Object
  extended by org.apache.accumulo.core.data.Value
      extended by org.apache.accumulo.server.tabletserver.MemValue
All Implemented Interfaces:
Comparable<Object>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<Object>

public class MemValue
extends Value


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.data.Value
Value.Comparator
 
Field Summary
 
Fields inherited from class org.apache.accumulo.core.data.Value
value
 
Constructor Summary
MemValue()
           
MemValue(byte[] value, int kv)
           
MemValue(Value value, int kv)
           
 
Method Summary
 void copy(byte[] b)
           
 void set(byte[] b)
           
static int splitKVCount(Value v)
          Takes a Value and will take out the embedded kvCount, and then return that value while replacing the Value with the original unembedded version
 void write(DataOutput out)
          
 
Methods inherited from class org.apache.accumulo.core.data.Value
compareTo, compareTo, equals, get, getSize, hashCode, readFields, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemValue

public MemValue(byte[] value,
                int kv)
Parameters:
value - Value
kv - kv count

MemValue

public MemValue()

MemValue

public MemValue(Value value,
                int kv)
Method Detail

write

public void write(DataOutput out)
           throws IOException
Description copied from class: Value

Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class Value
Throws:
IOException

set

public void set(byte[] b)
Overrides:
set in class Value
Parameters:
b - Use passed bytes as backing array for this instance.

copy

public void copy(byte[] b)
Overrides:
copy in class Value
Parameters:
b - copy bytes

splitKVCount

public static int splitKVCount(Value v)
Takes a Value and will take out the embedded kvCount, and then return that value while replacing the Value with the original unembedded version

Parameters:
v -
Returns:
The kvCount embedded in v.


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.