RecordParser<Writable> parser = null;
if (!hasCollections && exampleValue instanceof BytesRefArrayWritable) {
parser = new BytesParser(partitionValues, numColumns, data);
} else {
parser = new ArrayParser(partitionValues, numColumns, data);
}
LOG.info("Using " + parser.getClass().getSimpleName() +
" to parse hive records from table " + tableName.dotString());
return parser;