Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.dfs

public Class DfsReftableStack

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
java.io.IOException, java.util.ArrayList, .Collections, .List, org.eclipse.jgit.internal.storage.reftable.ReftableReader

Tracks multiple open org.eclipse.jgit.internal.storage.reftable.ReftableReader instances.

Field Summary

Modifier and TypeField and Description
private final List<DfsReftable>
private final List<ReftableReader>

Constructor Summary

AccessConstructor and Description
private
DfsReftableStack(int tableCnt)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public List<DfsReftable>

Returns:

unmodifiable list of DfsRefatble files, in the same order the files were passed to open(DfsReader, List).
files
()

Get unmodifiable list of DfsRefatble files

public static DfsReftableStack

Returns:

stack reference to close the tables.
open
(DfsReader
context to read the tables with. This ctx will be retained by the stack and each of the table readers.
ctx
,
List<DfsReftable>
the tables to open.
files
)

Opens a stack of tables for reading.

public List<ReftableReader>

Returns:

unmodifiable list of tables, in the same order the files were passed to open(DfsReader, List).
readers
()

Get unmodifiable list of tables

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filesback to summary
private final List<DfsReftable> files
tablesback to summary
private final List<ReftableReader> tables

Constructor Detail

DfsReftableStackback to summary
private DfsReftableStack(int tableCnt)

Method Detail

closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
filesback to summary
public List<DfsReftable> files()

Get unmodifiable list of DfsRefatble files

Returns:List<DfsReftable>

unmodifiable list of DfsRefatble files, in the same order the files were passed to open(DfsReader, List).

openback to summary
public static DfsReftableStack open(DfsReader ctx, List<DfsReftable> files) throws IOException

Opens a stack of tables for reading.

Parameters
ctx:DfsReader

context to read the tables with. This ctx will be retained by the stack and each of the table readers.

files:List<DfsReftable>

the tables to open.

Returns:DfsReftableStack

stack reference to close the tables.

Exceptions
IOException:
a table could not be opened
readersback to summary
public List<ReftableReader> readers()

Get unmodifiable list of tables

Returns:List<ReftableReader>

unmodifiable list of tables, in the same order the files were passed to open(DfsReader, List).