Class PartitionMetadata<K extends java.io.Serializable>
- java.lang.Object
-
- org.apache.nemo.runtime.executor.data.metadata.PartitionMetadata<K>
-
- Type Parameters:
K
- the key type of its partitions.
public final class PartitionMetadata<K extends java.io.Serializable> extends java.lang.Object
This class represents a metadata for a partition.
-
-
Constructor Summary
Constructors Constructor Description PartitionMetadata(K key, int partitionSize, long offset)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
getKey()
long
getOffset()
int
getPartitionSize()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PartitionMetadata
public PartitionMetadata(K key, int partitionSize, long offset)
Constructor.- Parameters:
key
- the key of this partition.partitionSize
- the size of this partition.offset
- the offset of this partition.
-
-
Method Detail
-
getKey
public K getKey()
- Returns:
- the key of this partition.
-
getPartitionSize
public int getPartitionSize()
- Returns:
- the size of this partition.
-
getOffset
public long getOffset()
- Returns:
- the offset of this partition.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-