HBASE-10251 Restore API Compat for PerformanceEvaluation.generateValue() (Dima Spivak via JD)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1594637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9be1c51427
commit
6b1c419445
|
@ -1065,6 +1065,15 @@ public class PerformanceEvaluation extends Configured implements Tool {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #generateData(java.util.Random, int)} instead.
|
||||||
|
* @return Generated random value to insert into a table cell.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public static byte[] generateValue(final Random r) {
|
||||||
|
return generateData(r, VALUE_LENGTH);
|
||||||
|
}
|
||||||
|
|
||||||
static byte [] getRandomRow(final Random random, final int totalRows) {
|
static byte [] getRandomRow(final Random random, final int totalRows) {
|
||||||
return format(random.nextInt(Integer.MAX_VALUE) % totalRows);
|
return format(random.nextInt(Integer.MAX_VALUE) % totalRows);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue