use of org.apache.hive.hcatalog.data.transfer.ReadEntity in project hive by apache.
the class TestReaderWriter method runsInMaster.
private ReaderContext runsInMaster(Map<String, String> config, boolean bogus) throws HCatException {
ReadEntity entity = new ReadEntity.Builder().withTable("mytbl").build();
HCatReader reader = DataTransferFactory.getHCatReader(entity, config);
ReaderContext cntxt = reader.prepareRead();
return cntxt;
}
use of org.apache.hive.hcatalog.data.transfer.ReadEntity in project hive by apache.
the class DataReaderMaster method runsInMaster.
private static ReaderContext runsInMaster(Map<String, String> config) throws HCatException {
ReadEntity.Builder builder = new ReadEntity.Builder();
ReadEntity entity = builder.withTable(config.get("table")).build();
HCatReader reader = DataTransferFactory.getHCatReader(entity, config);
ReaderContext cntxt = reader.prepareRead();
return cntxt;
}
Aggregations