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 intgetId()Retrieve id of the partition.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, equals, finalize, getClass, hashCode, 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
-
-