public class HilbertValueGroup
extends java.lang.Object
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(LongWritable a, LongWritable b) |
int |
compareTo(HilbertValueGroup lp) |
boolean |
equals(java.lang.Object obj) |
LongWritable |
getGroupId()
Gets the current group id
|
LongWritable |
getHilbertValue()
Gets the hilbert value
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
set(LongWritable groupId, LongWritable hilbertValue)
Sets the given group id and hilbert value to an existing instance
|
void |
setGroupId(LongWritable partitionId)
Sets a group id
|
void |
setHilbertValue(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 static int compare(LongWritable a, LongWritable b)
public int compareTo(HilbertValueGroup lp)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public LongWritable getGroupId()
public LongWritable getHilbertValue()
public int hashCode()
hashCode
in class java.lang.Object
public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void set(LongWritable groupId, LongWritable hilbertValue)
groupId
-hilbertValue
-public void setGroupId(LongWritable partitionId)
partitionId
-public void setHilbertValue(LongWritable hilbertValue)
hilbertValue
-public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.