Class DfsReftableStack
java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsReftableStack
- All Implemented Interfaces:
AutoCloseable
Tracks multiple open
ReftableReader
instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DfsReftable>
private final List<ReftableReader>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
files()
Get unmodifiable list of DfsRefatble filesstatic DfsReftableStack
open
(DfsReader ctx, List<DfsReftable> files) Opens a stack of tables for reading.readers()
Get unmodifiable list of tables
-
Field Details
-
files
-
tables
-
-
Constructor Details
-
DfsReftableStack
private DfsReftableStack(int tableCnt)
-
-
Method Details
-
open
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
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
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
-