public class FileReftableStack extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
FileReftableStack.ReftableNumbersNotIncreasingException
Thrown if the update indices in the stack are not monotonic
|
static interface |
FileReftableStack.Writer
Writer is a callable that writes data to a reftable under construction.
|
| Constructor and Description |
|---|
FileReftableStack(File stackPath,
File reftableDir,
Runnable onChange,
Supplier<Config> configSupplier)
Creates a stack corresponding to the list of reftables in the argument
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addReftable(FileReftableStack.Writer w)
Tries to add a new reftable to the stack.
|
void |
close() |
MergedReftable |
getMergedReftable() |
public FileReftableStack(File stackPath, File reftableDir, @Nullable Runnable onChange, Supplier<Config> configSupplier) throws IOException
stackPath - the filename for the stack.reftableDir - the dir holding the tables.onChange - hook to call if we notice a new writeconfigSupplier - Config supplierIOException - on I/O problemspublic MergedReftable getMergedReftable()
public void close()
close in interface AutoCloseablepublic boolean addReftable(FileReftableStack.Writer w) throws IOException
w - writer to write data to a reftable under constructionIOException - on I/O problemsCopyright © 2020 Eclipse JGit Project. All rights reserved.