public static HCatReader getHCatReader(final ReadEntity re,
                       final Map<String, String> config) {
    // In future, this may examine ReadEntity and/or config to return
    // appropriate HCatReader
    return new HCatInputFormatReader(re, config);
  }
This should be called once from master node to obtain an instance of
{@link HCatReader}.

@param re
         ReadEntity built using {@link ReadEntity.Builder}
@param config
         any configuration which master node wants to pass to HCatalog
@return {@link HCatReader}
hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/transfer/DataTransferFactory.java