public class HilbertValueGroup extends java.lang.Object implements org.apache.hadoop.io.WritableComparable<HilbertValueGroup>
Constructor and Description |
---|
HilbertValueGroup()
Creates a new instance
|
HilbertValueGroup(long groupId, long hilbertValue)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
static int |
compare(org.apache.hadoop.io.LongWritable a, org.apache.hadoop.io.LongWritable b) |
int |
compareTo(HilbertValueGroup lp) |
boolean |
equals(java.lang.Object obj) |
org.apache.hadoop.io.LongWritable |
getGroupId()
Gets the current group id
|
org.apache.hadoop.io.LongWritable |
getHilbertValue()
Gets the hilbert value
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
set(org.apache.hadoop.io.LongWritable groupId, org.apache.hadoop.io.LongWritable hilbertValue)
Sets the given group id and hilbert value to an existing instance
|
void |
setGroupId(org.apache.hadoop.io.LongWritable partitionId)
Sets a group id
|
void |
setHilbertValue(org.apache.hadoop.io.LongWritable hilbertValue)
Sets a hilbert value
|
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public HilbertValueGroup()
public HilbertValueGroup(long groupId, long hilbertValue)
groupId
-hilbertValue
-public void set(org.apache.hadoop.io.LongWritable groupId, org.apache.hadoop.io.LongWritable hilbertValue)
groupId
-hilbertValue
-public void setGroupId(org.apache.hadoop.io.LongWritable partitionId)
partitionId
-public org.apache.hadoop.io.LongWritable getGroupId()
public void setHilbertValue(org.apache.hadoop.io.LongWritable hilbertValue)
hilbertValue
-public org.apache.hadoop.io.LongWritable getHilbertValue()
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(HilbertValueGroup lp)
compareTo
in interface java.lang.Comparable<HilbertValueGroup>
public static int compare(org.apache.hadoop.io.LongWritable a, org.apache.hadoop.io.LongWritable b)
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.