scanner = reader.createScanner(begin, end);
/*
* serializer is inside cgschema: different serializer will require
* different Reader: for pig, it's TupleReader
*/
tupleReader = new TupleReader(cgschema.getSchema(), projection);
closed = false;
}
finally {
if (closed == true) { // failed to instantiate the object.
if (scanner != null) {