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 int
getId()
Retrieve id of the partition.boolean
isBounded()
Check if this is bounded or unbounded partition.long
size()
Estimate size of this partition.java.lang.String
toString()
-
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:Partition
Check if this is bounded or unbounded partition.
-
getId
public int getId()
Description copied from interface:Partition
Retrieve id of the partition.
-
size
public long size()
Description copied from interface:Partition
Estimate size of this partition.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-