public static class Partitioner.PartitionData extends Object implements Serializable, org.apache.hadoop.io.Writable
Constructor and Description |
---|
PartitionData() |
PartitionData(ByteArray partitionKey,
ByteArray sortKey,
boolean primary) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ByteArray |
getCompositeKey() |
ByteArray |
getGroupId() |
ByteArray |
getPartitionKey() |
ByteArray |
getSortKey() |
int |
hashCode() |
boolean |
isPrimary() |
void |
readFields(DataInput dInput) |
void |
setGroupId(ByteArray groupId) |
void |
setPrimary(boolean isPrimary) |
String |
toString() |
void |
write(DataOutput dOutput) |
public ByteArray getPartitionKey()
public ByteArray getSortKey()
public ByteArray getCompositeKey()
public ByteArray getGroupId()
public void setGroupId(ByteArray groupId)
public boolean isPrimary()
public void readFields(DataInput dInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput dOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void setPrimary(boolean isPrimary)
Copyright © 2013–2020. All rights reserved.