for (MarshallingOutputWriter<Father> writer : writers) {
writer.beginShard();
writer.beginSlice();
writer = SerializationUtil.clone(writer);
writer.write(new Father(true, "Father",
Lists.newArrayList(new Child("Childone", 1), new Child("childtwo", 2))));
writer.endSlice();
writer.beginSlice();
writer.write(new Father(true, "Father",
Lists.newArrayList(new Child("Childone", 1), new Child("childtwo", 2))));
writer.endSlice();
writer = SerializationUtil.clone(writer);
writer.beginSlice();
writer.write(new Father(true, "Father",
Lists.newArrayList(new Child("Childone", 1), new Child("childtwo", 2))));
writer.endSlice();
writer.endShard();
finished.add(writer);
}
BigQueryStoreResult<GoogleCloudStorageFileSet> result = creator.finish(finished);