Package org.apache.accumulo.test
Class TestIngest
- java.lang.Object
-
- org.apache.accumulo.test.TestIngest
-
public class TestIngest extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestIngest.Opts
-
Field Summary
Fields Modifier and Type Field Description static Authorizations
AUTHS
-
Constructor Summary
Constructors Constructor Description TestIngest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createTable(Connector conn, TestIngest.Opts args)
static org.apache.hadoop.io.Text
generateRow(int rowid, int startRow)
static byte[][]
generateValues(int dataSize)
static byte[]
genRandomValue(Random random, byte[] dest, int seed, int row, int col)
static TreeSet<org.apache.hadoop.io.Text>
getSplitPoints(long start, long end, long numsplits)
static void
ingest(Connector c, TestIngest.Opts opts, BatchWriterOpts batchWriterOpts)
static void
ingest(Connector connector, org.apache.hadoop.fs.FileSystem fs, TestIngest.Opts opts, BatchWriterOpts bwOpts)
static void
main(String[] args)
static void
toPrintableChars(byte[] dest)
-
-
-
Field Detail
-
AUTHS
public static final Authorizations AUTHS
-
-
Method Detail
-
createTable
public static void createTable(Connector conn, TestIngest.Opts args) throws AccumuloException, AccumuloSecurityException, TableExistsException
-
getSplitPoints
public static TreeSet<org.apache.hadoop.io.Text> getSplitPoints(long start, long end, long numsplits)
-
generateValues
public static byte[][] generateValues(int dataSize)
-
generateRow
public static org.apache.hadoop.io.Text generateRow(int rowid, int startRow)
-
genRandomValue
public static byte[] genRandomValue(Random random, byte[] dest, int seed, int row, int col)
-
toPrintableChars
public static void toPrintableChars(byte[] dest)
-
ingest
public static void ingest(Connector connector, org.apache.hadoop.fs.FileSystem fs, TestIngest.Opts opts, BatchWriterOpts bwOpts) throws IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException, MutationsRejectedException, TableExistsException
-
ingest
public static void ingest(Connector c, TestIngest.Opts opts, BatchWriterOpts batchWriterOpts) throws MutationsRejectedException, IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException, TableExistsException
-
-