if (recordClass.equals(byte[].class)) {
switch (fileFormat) {
case LZO_BLOCK:
return new LzoBinaryBlockRecordReader(typeRef,
new BinaryBlockReader<byte[]>(null, new IdentityBinaryConverter()){},
new RawBytesWritable()){};
case LZO_B64LINE:
return new LzoBinaryB64LineRecordReader(typeRef,
new RawBytesWritable(), new IdentityBinaryConverter());
}
}
throw new IOException( "could not determine reader for "
+ ((FileSplit)split).getPath() + " with class " + recordClass.getName());