public interface PartitionGroup extends Configured<PartitionGroupConfig>
| Modifier and Type | Interface and Description |
|---|---|
static class |
PartitionGroup.Builder<C extends PartitionGroupConfig<C>>
Partition group builder.
|
static interface |
PartitionGroup.Type<C extends PartitionGroupConfig<C>>
Partition group type.
|
| Modifier and Type | Method and Description |
|---|---|
Partition |
getPartition(PartitionId partitionId)
Returns a partition by ID.
|
default Partition |
getPartition(String key)
Returns the partition for the given key.
|
List<PartitionId> |
getPartitionIds()
Returns a sorted list of partition IDs.
|
Collection<Partition> |
getPartitions()
Returns a collection of all partitions.
|
String |
name()
Returns the partition group name.
|
ProxyProtocol |
newProtocol()
Returns a new primitive protocol.
|
PrimitiveProtocol.Type |
protocol()
Returns the primitive protocol type supported by the partition group.
|
PartitionGroup.Type |
type()
Returns the partition group type.
|
configString name()
PartitionGroup.Type type()
PrimitiveProtocol.Type protocol()
ProxyProtocol newProtocol()
Partition getPartition(PartitionId partitionId)
partitionId - the partition identifiernull if no partition with the given identifier existsNullPointerException - if the partition identifier is nulldefault Partition getPartition(String key)
key - the key for which to return the partitionCollection<Partition> getPartitions()
List<PartitionId> getPartitionIds()
Copyright © 2013–2018. All rights reserved.