K - Type of the key.public class InternalKeyContextImpl<K> extends Object implements InternalKeyContext<K>
InternalKeyContext implementation.| 构造器和说明 |
|---|
InternalKeyContextImpl(KeyGroupRange keyGroupRange,
int numberOfKeyGroups) |
| 限定符和类型 | 方法和说明 |
|---|---|
K |
getCurrentKey()
Used by states to access the current key.
|
int |
getCurrentKeyGroupIndex()
Returns the key-group to which the current key belongs.
|
KeyGroupRange |
getKeyGroupRange()
Returns the key groups for this backend.
|
int |
getNumberOfKeyGroups()
Returns the number of key-groups aka max parallelism.
|
void |
setCurrentKey(K currentKey)
Set current key of the context.
|
void |
setCurrentKeyGroupIndex(int currentKeyGroupIndex)
Set current key group index of the context.
|
public InternalKeyContextImpl(@Nonnull KeyGroupRange keyGroupRange, @Nonnegative int numberOfKeyGroups)
public K getCurrentKey()
InternalKeyContextgetCurrentKey 在接口中 InternalKeyContext<K>public int getCurrentKeyGroupIndex()
InternalKeyContextgetCurrentKeyGroupIndex 在接口中 InternalKeyContext<K>public int getNumberOfKeyGroups()
InternalKeyContextgetNumberOfKeyGroups 在接口中 InternalKeyContext<K>public KeyGroupRange getKeyGroupRange()
InternalKeyContextgetKeyGroupRange 在接口中 InternalKeyContext<K>public void setCurrentKey(@Nonnull K currentKey)
InternalKeyContextsetCurrentKey 在接口中 InternalKeyContext<K>currentKey - the current key to set to.public void setCurrentKeyGroupIndex(int currentKeyGroupIndex)
InternalKeyContextsetCurrentKeyGroupIndex 在接口中 InternalKeyContext<K>currentKeyGroupIndex - the current key group index to set to.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.