org.apache.accumulo.examples.simple.client
public class RandomBatchWriter extends Object
Constructor and Description |
---|
RandomBatchWriter() |
Modifier and Type | Method and Description |
---|---|
static Mutation |
createMutation(long rowid,
int dataSize,
ColumnVisibility visibility)
Creates a mutation on a specified row with column family "foo", column qualifier "1", specified visibility, and a random value of specified size.
|
static byte[] |
createValue(long rowid,
int dataSize)
Creates a random byte array of specified size using the specified seed.
|
static void |
main(String[] args)
Writes a specified number of entries to Accumulo using a
BatchWriter . |
public static byte[] createValue(long rowid, int dataSize)
rowid
- the seed to use for the random number generatordataSize
- the size of the arraypublic static Mutation createMutation(long rowid, int dataSize, ColumnVisibility visibility)
rowid
- the row of the mutationdataSize
- the size of the random valuevisibility
- the visibility of the entry to insertpublic static void main(String[] args) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
BatchWriter
.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.