K
- the key type of its partitions.public final class PartitionMetadata<K extends Serializable> extends Object
Constructor and Description |
---|
PartitionMetadata(K key,
int partitionSize,
long offset,
long elementsTotal)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getElementsTotal() |
K |
getKey() |
long |
getOffset() |
int |
getPartitionSize() |
public PartitionMetadata(K key, int partitionSize, long offset, long elementsTotal)
key
- the key of this partition.partitionSize
- the size of this partition.offset
- the offset of this partition.elementsTotal
- the total number of elements in this partition.public K getKey()
public int getPartitionSize()
public long getOffset()
public long getElementsTotal()
Copyright © 2018. All rights reserved.