Class RelativeKey
- java.lang.Object
-
- org.apache.accumulo.core.file.rfile.RelativeKey
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class RelativeKey extends Object implements org.apache.hadoop.io.Writable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelativeKey.SkippR
-
Constructor Summary
Constructors Constructor Description RelativeKey()
This constructor is used when one needs to read from an input streamRelativeKey(Key prevKey, Key key)
This constructor is used when constructing a key for writing to an output stream
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelativeKey.SkippR
fastSkip(DataInput in, Key seekKey, MutableByteSequence value, Key prevKey, Key currKey, int entriesLeft)
Key
getKey()
void
readFields(DataInput in)
void
setPrevKey(Key pk)
void
write(DataOutput out)
-
-
-
Method Detail
-
setPrevKey
public void setPrevKey(Key pk)
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
fastSkip
public static RelativeKey.SkippR fastSkip(DataInput in, Key seekKey, MutableByteSequence value, Key prevKey, Key currKey, int entriesLeft) throws IOException
- Throws:
IOException
-
getKey
public Key getKey()
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
-