public class RowKeyDistributorByHashPrefix extends AbstractRowKeyDistributor
| Modifier and Type | Class and Description |
|---|---|
static interface |
RowKeyDistributorByHashPrefix.Hasher
todo
|
static class |
RowKeyDistributorByHashPrefix.OneByteSimpleHash
todo
|
| Constructor and Description |
|---|
RowKeyDistributorByHashPrefix()
Constructor reflection.
|
RowKeyDistributorByHashPrefix(RowKeyDistributorByHashPrefix.Hasher hasher) |
| Modifier and Type | Method and Description |
|---|---|
byte[][] |
getAllDistributedKeys(byte[] originalKey) |
byte[] |
getDistributedKey(byte[] originalKey) |
byte[] |
getOriginalKey(byte[] adjustedKey) |
String |
getParamsToStore() |
void |
init(String params) |
addInfo, getDistributedIntervals, getDistributedScanspublic RowKeyDistributorByHashPrefix()
public RowKeyDistributorByHashPrefix(RowKeyDistributorByHashPrefix.Hasher hasher)
public byte[] getDistributedKey(byte[] originalKey)
getDistributedKey in class AbstractRowKeyDistributorpublic byte[] getOriginalKey(byte[] adjustedKey)
getOriginalKey in class AbstractRowKeyDistributorpublic byte[][] getAllDistributedKeys(byte[] originalKey)
getAllDistributedKeys in class AbstractRowKeyDistributorpublic String getParamsToStore()
public void init(String params)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.