public class HCatUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.hcatalog.mapreduce.HCatSplit |
castToHCatSplit(org.apache.hadoop.mapreduce.InputSplit split)
Cast an
InputSplit to HCatSplit . |
static org.apache.hcatalog.mapreduce.InputJobInfo |
getInputJobInfo(org.apache.hadoop.conf.Configuration conf,
org.apache.hcatalog.mapreduce.InputJobInfo inputJobInfo)
Returns the given InputJobInfo after populating with data queried from the
metadata service.
|
static org.apache.hadoop.mapreduce.RecordReader |
newHCatReader(org.apache.hcatalog.mapreduce.HCatStorageHandler storageHandler,
Map<String,String> valuesNotInDataCols)
Create a new
HCatRecordReader . |
public static org.apache.hcatalog.mapreduce.InputJobInfo getInputJobInfo(org.apache.hadoop.conf.Configuration conf, org.apache.hcatalog.mapreduce.InputJobInfo inputJobInfo) throws IOException
conf
- ConfigurationinputJobInfo
- Input job infoIOException
public static org.apache.hadoop.mapreduce.RecordReader newHCatReader(org.apache.hcatalog.mapreduce.HCatStorageHandler storageHandler, Map<String,String> valuesNotInDataCols)
HCatRecordReader
.storageHandler
- Storage handlervaluesNotInDataCols
- Values not in data columnspublic static org.apache.hcatalog.mapreduce.HCatSplit castToHCatSplit(org.apache.hadoop.mapreduce.InputSplit split) throws IOException
InputSplit
to HCatSplit
.split
- Input splitHCatSplit
IOException
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.