public final class GramKey
extends org.apache.hadoop.io.BinaryComparable
implements org.apache.hadoop.io.WritableComparable<org.apache.hadoop.io.BinaryComparable>
Constructor and Description |
---|
GramKey() |
GramKey(Gram gram,
byte[] order)
create a GramKey based on the specified Gram and order
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
int |
getLength() |
int |
getPrimaryLength() |
String |
getPrimaryString() |
Gram.Type |
getType() |
void |
readFields(DataInput in) |
void |
set(Gram gram,
byte[] order)
set the gram held by this key
|
String |
toString() |
void |
write(DataOutput out) |
compareTo, compareTo, equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public GramKey()
public GramKey(Gram gram, byte[] order)
gram
- order
- public void set(Gram gram, byte[] order)
public byte[] getBytes()
getBytes
in class org.apache.hadoop.io.BinaryComparable
public int getLength()
getLength
in class org.apache.hadoop.io.BinaryComparable
public int getPrimaryLength()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public Gram.Type getType()
public String getPrimaryString()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.