use of org.apache.hive.hcatalog.data.transfer.HCatWriter in project hive by apache.
the class TestReaderWriter method commit.
private void commit(Map<String, String> config, boolean status, WriterContext context) throws IOException {
WriteEntity.Builder builder = new WriteEntity.Builder();
WriteEntity entity = builder.withTable("mytbl").build();
HCatWriter writer = DataTransferFactory.getHCatWriter(entity, config);
if (status) {
writer.commit(context);
} else {
writer.abort(context);
}
}
Aggregations