Class TarFiles
java.lang.Object
org.apache.jackrabbit.oak.segment.file.tar.TarFiles
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic TarFiles.Builder
builder()
cleanup
(CleanupContext context) void
close()
void
collectBlobReferences
(Consumer<String> collector, Predicate<GCGeneration> reclaim) boolean
containsSegment
(long msb, long lsb) void
flush()
void
init()
int
readSegment
(long msb, long lsb) int
long
size()
toString()
void
writeSegment
(UUID id, byte[] buffer, int offset, int length, GCGeneration generation, Set<UUID> references, Set<String> binaryReferences)
-
Method Details
-
builder
-
init
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
toString
-
size
public long size() -
readerCount
public int readerCount() -
segmentCount
public int segmentCount()- Returns:
- the number of segments in the segment store
-
flush
- Throws:
IOException
-
containsSegment
public boolean containsSegment(long msb, long lsb) -
readSegment
-
writeSegment
public void writeSegment(UUID id, byte[] buffer, int offset, int length, GCGeneration generation, Set<UUID> references, Set<String> binaryReferences) throws IOException - Throws:
IOException
-
cleanup
- Throws:
IOException
-
collectBlobReferences
public void collectBlobReferences(Consumer<String> collector, Predicate<GCGeneration> reclaim) throws IOException - Throws:
IOException
-
getSegmentIds
-
getGraph
- Throws:
IOException
-
getIndices
-
createFileReaper
-