ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
ow.writeValueAsString(v.getAccessor().getObject(0));
ow.writeValueAsString(v.getAccessor().getObject(1));
FieldReader reader = v.get("col", MapVector.class).getAccessor().getReader();
ByteArrayOutputStream stream = new ByteArrayOutputStream();
JsonWriter jsonWriter = new JsonWriter(stream, true);
reader.setPosition(0);
jsonWriter.write(reader);
reader.setPosition(1);
jsonWriter.write(reader);
System.out.print("Json Read: ");
System.out.println(new String(stream.toByteArray(), Charsets.UTF_8));
// System.out.println(compound);
System.out.println("Total Records Written " + batchSizes);
reader.setPosition(lastRecordCount - 2);
assertEquals("goodbye", reader.reader("c").readText().toString());
reader.setPosition(lastRecordCount - 1);
assertEquals("red", reader.reader("c").readText().toString());
assertEquals((repeatSize+1) * 2, total);
writer.clear();
buffer.release();
}