@Override
    public void prepareToRead(@SuppressWarnings("rawtypes") RecordReader newReader, PigSplit pigSplit) {
        // Note that for this Loader, we don't care about the PigSplit.
        if (newReader instanceof ApacheHttpdLogfileRecordReader) {
            this.reader = (ApacheHttpdLogfileRecordReader) newReader;
        } else {
            throw new IncorrectRecordReaderException();
        }
    }
@ Override public void prepareToRead ( @ SuppressWarnings ( "rawtypes" ) RecordReader newReader , PigSplit pigSplit ) { if ( newReader instanceof ApacheHttpdLogfileRecordReader ) { this . reader = ( ApacheHttpdLogfileRecordReader ) newReader ; } else { throw new IncorrectRecordReaderException ( ) ; } }
------------------------------------------