public class RandomKeysGenerator extends Object implements IRabaGenerator
Constructor and Description |
---|
RandomKeysGenerator(Random r,
int maxKeys,
int maxKeyLength) |
Modifier and Type | Method and Description |
---|---|
byte[][] |
generateKeys(int nkeys)
Generate a set of N random distinct byte[] keys in sorted order using an
unsigned byte[] comparison function.
|
byte[][] |
generateValues(int size)
Generate B+Tree values (may include
null s). |
boolean |
isKeysGenerator()
Yes.
|
boolean |
isValuesGenerator()
No.
|
public RandomKeysGenerator(Random r, int maxKeys, int maxKeyLength)
r
- The random number generator.maxKeys
- The branching factor (will be the capacity of the array).maxKeyLength
- The maximum length of a key.public boolean isKeysGenerator()
isKeysGenerator
in interface IRabaGenerator
public boolean isValuesGenerator()
isValuesGenerator
in interface IRabaGenerator
public byte[][] generateKeys(int nkeys)
generateKeys
in interface IRabaGenerator
nkeys
- The #of keys to generate.public byte[][] generateValues(int size)
IRabaGenerator
null
s).generateValues
in interface IRabaGenerator
size
- The #of values.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.