@Override public TransactionEdit next() throws IOException { return next(new TransactionEdit()); }
@Override public TransactionLogReader get() { if (logReader != null) { return logReader; } switch (version) { case 2: logReader = new HDFSTransactionLogReaderV2(reader); return logReader; case 1: logReader = new HDFSTransactionLogReaderV1(reader); return logReader; default: throw new IllegalArgumentException(String.format("Invalid version %s found in the Transaction Log", version)); } } }
@Override public TransactionLogReader get() { if (logReader != null) { return logReader; } switch (version) { case 2: logReader = new HDFSTransactionLogReaderV2(reader); return logReader; case 1: logReader = new HDFSTransactionLogReaderV1(reader); return logReader; default: throw new IllegalArgumentException(String.format("Invalid version %s found in the Transaction Log", version)); } } }
@Override public TransactionEdit next() throws IOException { return next(new TransactionEdit()); }