@InterfaceAudience.Private public class LoadTestDataGeneratorWithVisibilityLabels extends MultiThreadedAction.DefaultDataGenerator
Modifier and Type | Field and Description |
---|---|
private String[][] |
authorizations |
private static String |
COMMA |
private String[] |
visibilityExps |
args, INCREMENT, kvGenerator, MUTATE_INFO
Constructor and Description |
---|
LoadTestDataGeneratorWithVisibilityLabels(int minValueSize,
int maxValueSize,
int minColumnsPerKey,
int maxColumnsPerKey,
byte[]... columnFamilies) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.client.Get |
beforeGet(long rowkeyBase,
org.apache.hadoop.hbase.client.Get get)
Giving a chance for the LoadTestDataGenerator to change the Get load.
|
org.apache.hadoop.hbase.client.Mutation |
beforeMutate(long rowkeyBase,
org.apache.hadoop.hbase.client.Mutation m)
Giving a chance for the LoadTestDataGenerator to change the Mutation load.
|
void |
initialize(String[] args)
initialize the LoadTestDataGenerator
|
private static String[][] |
toAuthorizationsSet(String authorizationsStr) |
generateColumnsForCf, generateValue, getColumnFamilies, getDeterministicUniqueKey, verify, verify
generateData, getArgs
private static final String COMMA
private String[] visibilityExps
private String[][] authorizations
public LoadTestDataGeneratorWithVisibilityLabels(int minValueSize, int maxValueSize, int minColumnsPerKey, int maxColumnsPerKey, byte[]... columnFamilies)
public void initialize(String[] args)
LoadTestDataGenerator
initialize
in class LoadTestDataGenerator
args
- init argsprivate static String[][] toAuthorizationsSet(String authorizationsStr)
public org.apache.hadoop.hbase.client.Mutation beforeMutate(long rowkeyBase, org.apache.hadoop.hbase.client.Mutation m) throws IOException
LoadTestDataGenerator
beforeMutate
in class LoadTestDataGenerator
IOException
public org.apache.hadoop.hbase.client.Get beforeGet(long rowkeyBase, org.apache.hadoop.hbase.client.Get get)
LoadTestDataGenerator
beforeGet
in class LoadTestDataGenerator
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.