public interface PartitionGroup
| Modifier and Type | Interface and Description |
|---|---|
static class |
PartitionGroup.Builder
Partition group builder.
|
| 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.
|
PrimitiveProtocol.Type |
type()
Returns the primitive protocol type supported by the partition group.
|
String name()
PrimitiveProtocol.Type type()
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.