Package cz.o2.proxima.direct.core.batch
Class BoundedPartition
- java.lang.Object
-
- cz.o2.proxima.direct.core.batch.BoundedPartition
-
- Direct Known Subclasses:
CassandraPartition,HadoopPartition
@Internal public class BoundedPartition extends java.lang.Object implements Partition
Bounded implementation ofPartition.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.storage.Partition
Partition.IntegerPartition
-
-
Constructor Summary
Constructors Constructor Description BoundedPartition(int id)BoundedPartition(int id, long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetId()Retrieve id of the partition.inthashCode()booleanisBounded()Check if this is bounded or unbounded partition.longsize()Estimate size of this partition.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.storage.Partition
compareTo, getMaxTimestamp, getMinTimestamp, isSplittable, split
-
-
-
-
Method Detail
-
isBounded
public boolean isBounded()
Description copied from interface:PartitionCheck if this is bounded or unbounded partition.
-
getId
public int getId()
Description copied from interface:PartitionRetrieve id of the partition.
-
size
public long size()
Description copied from interface:PartitionEstimate size of this partition.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-