T
- the type of an entity to writeK
- the type of a partition keypublic abstract class AbstractPartitionStrategy<T,K> extends java.lang.Object implements PartitionStrategy<T,K>
PartitionStrategy
.Constructor and Description |
---|
AbstractPartitionStrategy(PartitionResolver<K> partitionResolver,
PartitionKeyResolver<T,K> partitionKeyResolver)
Instantiates a new abstract partition strategy.
|
Modifier and Type | Method and Description |
---|---|
PartitionKeyResolver<T,K> |
getPartitionKeyResolver()
Gets the partition key resolver.
|
PartitionResolver<K> |
getPartitionResolver()
Gets the partition resolver.
|
public AbstractPartitionStrategy(PartitionResolver<K> partitionResolver, PartitionKeyResolver<T,K> partitionKeyResolver)
partitionResolver
- the partition resolverpartitionKeyResolver
- the partition key resolverpublic PartitionResolver<K> getPartitionResolver()
PartitionStrategy
getPartitionResolver
in interface PartitionStrategy<T,K>
public PartitionKeyResolver<T,K> getPartitionKeyResolver()
PartitionStrategy
getPartitionKeyResolver
in interface PartitionStrategy<T,K>