Class DfsReftableStack
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.dfs.DfsReftableStack
-
- All Implemented Interfaces:
AutoCloseable
public class DfsReftableStack extends Object implements AutoCloseable
Tracks multiple openReftableReader
instances.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
List<DfsReftable>
files()
Get unmodifiable list of DfsRefatble filesstatic DfsReftableStack
open(DfsReader ctx, List<DfsReftable> files)
Opens a stack of tables for reading.List<ReftableReader>
readers()
Get unmodifiable list of tables
-
-
-
Method Detail
-
open
public static DfsReftableStack open(DfsReader ctx, List<DfsReftable> files) throws IOException
Opens a stack of tables for reading.- Parameters:
ctx
- context to read the tables with. Thisctx
will be retained by the stack and each of the table readers.files
- the tables to open.- Returns:
- stack reference to close the tables.
- Throws:
IOException
- a table could not be opened
-
files
public List<DfsReftable> files()
Get unmodifiable list of DfsRefatble files- Returns:
- unmodifiable list of DfsRefatble files, in the same order the
files were passed to
open(DfsReader, List)
.
-
readers
public List<ReftableReader> readers()
Get unmodifiable list of tables- Returns:
- unmodifiable list of tables, in the same order the files were
passed to
open(DfsReader, List)
.
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-