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.IngestParams
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(AccumuloClient client, TestIngest.IngestParams params)
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(AccumuloClient c, TestIngest.IngestParams params)
static void
ingest(AccumuloClient accumuloClient, org.apache.hadoop.fs.FileSystem fs, TestIngest.IngestParams params)
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(AccumuloClient client, TestIngest.IngestParams params) 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(AccumuloClient accumuloClient, org.apache.hadoop.fs.FileSystem fs, TestIngest.IngestParams params) throws IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException, MutationsRejectedException, TableExistsException
-
ingest
public static void ingest(AccumuloClient c, TestIngest.IngestParams params) throws MutationsRejectedException, IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException, TableExistsException
-
-