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 classRelativeKey.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.SkippRfastSkip(DataInput in, Key seekKey, MutableByteSequence value, Key prevKey, Key currKey, int entriesLeft)KeygetKey()voidreadFields(DataInput in)voidsetPrevKey(Key pk)voidwrite(DataOutput out)
-
-
-
Method Detail
-
setPrevKey
public void setPrevKey(Key pk)
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin 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:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-