BasicTable.Writer writer = new BasicTable.Writer(path, STR_SCHEMA,
STR_STORAGE, "r, c", null, conf);
writer.finish();
Schema schema = writer.getSchema();
Tuple tuple = TypesUtils.createTuple(schema);
BasicTable.Writer writer1 = new BasicTable.Writer(path, conf);
int part = 0;
TableInserter inserter = writer1.getInserter("part" + part, true);
TypesUtils.resetTuple(tuple);
tuple.set(0, true);
Tuple tupRecord;
try {
tupRecord = TypesUtils.createTuple(schema.getColumnSchema("r")
.getSchema());
} catch (ParseException e) {
e.printStackTrace();
throw new IOException(e);
}
// row 1
tupRecord.set(0, 1);
tupRecord.set(1, 1001L);
tuple.set(1, tupRecord);
Map<String, String> map = new HashMap<String, String>();
map.put("a", "x");
map.put("b", "y");
map.put("c", "z");
tuple.set(2, map);
DataBag bagColl = TypesUtils.createBag();
Schema schColl = schema.getColumn(3).getSchema();
Tuple tupColl1 = TypesUtils.createTuple(schColl);
Tuple tupColl2 = TypesUtils.createTuple(schColl);
byte[] abs1 = new byte[3];
byte[] abs2 = new byte[4];
tupColl1.set(0, 3.1415926);