public class TarFiles extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
TarFiles.Builder |
static class |
TarFiles.CleanupResult |
Modifier and Type | Method and Description |
---|---|
static TarFiles.Builder |
builder() |
TarFiles.CleanupResult |
cleanup(CleanupContext context) |
void |
close() |
void |
collectBlobReferences(Consumer<String> collector,
Predicate<GCGeneration> reclaim) |
boolean |
containsSegment(long msb,
long lsb) |
FileReaper |
createFileReaper() |
void |
flush() |
Map<UUID,Set<UUID>> |
getGraph(String fileName) |
Map<String,Set<UUID>> |
getIndices() |
Iterable<UUID> |
getSegmentIds() |
int |
readerCount() |
org.apache.jackrabbit.oak.commons.Buffer |
readSegment(long msb,
long lsb) |
int |
segmentCount() |
long |
size() |
String |
toString() |
void |
writeSegment(UUID id,
byte[] buffer,
int offset,
int length,
GCGeneration generation,
Set<UUID> references,
Set<String> binaryReferences) |
public static TarFiles.Builder builder()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long size()
public int readerCount()
public int segmentCount()
public void flush() throws IOException
IOException
public boolean containsSegment(long msb, long lsb)
public org.apache.jackrabbit.oak.commons.Buffer readSegment(long msb, long lsb)
public void writeSegment(UUID id, byte[] buffer, int offset, int length, GCGeneration generation, Set<UUID> references, Set<String> binaryReferences) throws IOException
IOException
public TarFiles.CleanupResult cleanup(CleanupContext context) throws IOException
IOException
public void collectBlobReferences(Consumer<String> collector, Predicate<GCGeneration> reclaim) throws IOException
IOException
public Map<UUID,Set<UUID>> getGraph(String fileName) throws IOException
IOException
public FileReaper createFileReaper()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.