public class ConsistentBucketIdentifier extends BucketIdentifier
| Constructor and Description |
|---|
ConsistentBucketIdentifier(HoodieConsistentHashingMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
ConsistentHashingNode |
getBucket(HoodieKey hoodieKey,
List<String> indexKeyFields) |
protected ConsistentHashingNode |
getBucket(int hashValue) |
protected ConsistentHashingNode |
getBucket(List<String> hashKeys) |
ConsistentHashingNode |
getBucketByFileId(String fileId)
Get bucket of the given file group
|
HoodieConsistentHashingMetadata |
getMetadata() |
Collection<ConsistentHashingNode> |
getNodes() |
int |
getNumBuckets() |
bucketIdFromFileId, bucketIdStr, getBucketId, getBucketId, getBucketId, getBucketId, getBucketId, getHashKeys, getHashKeys, getHashKeys, isBucketFileName, mod, newBucketFileIdPrefix, newBucketFileIdPrefix, partitionBucketIdStrpublic ConsistentBucketIdentifier(HoodieConsistentHashingMetadata metadata)
public Collection<ConsistentHashingNode> getNodes()
public HoodieConsistentHashingMetadata getMetadata()
public int getNumBuckets()
public ConsistentHashingNode getBucketByFileId(String fileId)
fileId - the file group id. NOTE: not filePfx (i.e., uuid)public ConsistentHashingNode getBucket(HoodieKey hoodieKey, List<String> indexKeyFields)
protected ConsistentHashingNode getBucket(List<String> hashKeys)
protected ConsistentHashingNode getBucket(int hashValue)
Copyright © 2022 The Apache Software Foundation. All rights reserved.