public class ReftableStack
extends java.lang.Object
implements java.lang.AutoCloseable
Reftable
instances.Modifier and Type | Field and Description |
---|---|
private java.util.List<DfsReftable> |
files |
private java.util.List<Reftable> |
tables |
Modifier | Constructor and Description |
---|---|
private |
ReftableStack(int tableCnt) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.List<DfsReftable> |
files()
Get unmodifiable list of DfsRefatble files
|
static ReftableStack |
open(DfsReader ctx,
java.util.List<DfsReftable> files)
Opens a stack of tables for reading.
|
java.util.List<Reftable> |
readers()
Get unmodifiable list of tables
|
private final java.util.List<DfsReftable> files
private final java.util.List<Reftable> tables
public static ReftableStack open(DfsReader ctx, java.util.List<DfsReftable> files) throws java.io.IOException
ctx
- context to read the tables with. This ctx
will be
retained by the stack and each of the table readers.files
- the tables to open.java.io.IOException
- a table could not be openedpublic java.util.List<DfsReftable> files()
open(DfsReader, List)
.public java.util.List<Reftable> readers()
open(DfsReader, List)
.public void close()
close
in interface java.lang.AutoCloseable