public static final class PartitionCellId.Cell extends Object implements Comparable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compares this
PartitionCellId.Cell instance with a given other PartitionCellId.Cell instance. |
boolean |
equals(Object o)
Compares this
PartitionCellId.Cell instance with a given other PartitionCellId.Cell instance based on their associated ColumnDescriptor
and RowDescriptor instances. |
ColumnDescriptor |
getColumn()
Gets the
ColumnDescriptor associated with this partition cell . |
RowDescriptor |
getRow()
Gets the
RowDescriptor associated with this partition cell . |
int |
hashCode()
Returns the hash code value for this
PartitionCellId.Cell instance. |
public final int compareTo(Object o)
PartitionCellId.Cell
instance with a given other PartitionCellId.Cell
instance.
The comparison is based on the indices of the rows
and columns
of the two
pairs. A PartitionCellId.Cell
is considered to be smaller than another pair if its row index
is
smaller than the row index of the other pair. If the row indices are equal, the PartitionCellId.Cell
with the smaller column index
is said to be smaller. Hence, two PartitionCellId.Cell
instances are equal, if the row and column indices are equal.
compareTo
in interface Comparable
o
- the PartitionCellId.Cell
to be compared-1
, 0
or 1
if this PartitionCellId.Cell
is smaller than, equal to, or greater than the given other PartitionCellId.Cell
instancepublic boolean equals(Object o)
PartitionCellId.Cell
instance with a given other PartitionCellId.Cell
instance based on their associated ColumnDescriptor
and RowDescriptor
instances.equals
in class Object
o
- the given PartitionCellId.Cell
instancetrue
if the two objects are equal, false
otherwisepublic final ColumnDescriptor getColumn()
ColumnDescriptor
associated with this partition cell
.ColumnDescriptor
instancepublic final RowDescriptor getRow()
RowDescriptor
associated with this partition cell
.RowDescriptor
instancepublic int hashCode()
PartitionCellId.Cell
instance.hashCode
in class Object
PartitionCellId.Cell
instance