@Override public TransactionSnapshot getLatestSnapshot() throws IOException { InputStream is = getLatestSnapshotInputStream(); if (is == null) { return null; } try { return readSnapshotFile(is); } finally { is.close(); } }
@Override public TransactionVisibilityState getLatestTransactionVisibilityState() throws IOException { InputStream is = getLatestSnapshotInputStream(); if (is == null) { return null; } try { return codecProvider.decodeTransactionVisibilityState(is); } finally { is.close(); } }
@Override protected AbstractTransactionStateStorage getStorage(Configuration conf) { return new LocalFileTransactionStateStorage(conf, new SnapshotCodecProvider(conf), new TxMetricsCollector()); }
@Override public TransactionVisibilityState getLatestTransactionVisibilityState() throws IOException { InputStream is = getLatestSnapshotInputStream(); if (is == null) { return null; } try { return codecProvider.decodeTransactionVisibilityState(is); } finally { is.close(); } }
@Override public TransactionSnapshot getLatestSnapshot() throws IOException { InputStream is = getLatestSnapshotInputStream(); if (is == null) { return null; } try { return readSnapshotFile(is); } finally { is.close(); } }