public class HashBucketAssigner extends Object implements BucketAssigner
| Constructor and Description |
|---|
HashBucketAssigner(SnapshotManager snapshotManager,
String commitUser,
IndexFileHandler indexFileHandler,
int numChannels,
int numAssigners,
int assignId,
long targetBucketRowNumber) |
| Modifier and Type | Method and Description |
|---|---|
int |
assign(BinaryRow partition,
int hash)
Assign a bucket for key hash of a record.
|
void |
prepareCommit(long commitIdentifier)
Prepare commit to clear outdated partition index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeAssigner, computeHashKey, isMyBucketpublic HashBucketAssigner(SnapshotManager snapshotManager, String commitUser, IndexFileHandler indexFileHandler, int numChannels, int numAssigners, int assignId, long targetBucketRowNumber)
public int assign(BinaryRow partition, int hash)
assign in interface BucketAssignerpublic void prepareCommit(long commitIdentifier)
prepareCommit in interface BucketAssignerCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.