org.apache.accumulo.server.tabletserver
Class MemValue
java.lang.Object
org.apache.accumulo.core.data.Value
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
| Fields inherited from class org.apache.accumulo.core.data.Value |
value |
|
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)
|
MemValue
public MemValue(byte[] value,
int kv)
- Parameters:
value - Valuekv - kv count
MemValue
public MemValue()
MemValue
public MemValue(Value value,
int kv)
write
public void write(DataOutput out)
throws IOException
- 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
copy
public void copy(byte[] b)
- Overrides:
copy in class Value
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.