Class SegmentGraph
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.tar.SegmentGraph
-
public final class SegmentGraph extends Object
-
-
Constructor Summary
Constructors Constructor Description SegmentGraph()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdge(@NotNull UUID from, @NotNull UUID to)static @NotNull SegmentGraphcompute(SegmentArchiveReader archiveReader)Computes the graph from a segment archivebooleanequals(Object other)@NotNull Map<UUID,Set<UUID>>getEdges()@NotNull Set<UUID>getEdges(@NotNull UUID from)inthashCode()static @Nullable SegmentGraphload(ReaderAtEnd readerAtEnd)Loads the optional pre-compiled graph entry from the given tar file.static @NotNull SegmentGraphparse(@NotNull Buffer buffer)intsize()byte[]write()
-
-
-
Method Detail
-
load
@Nullable public static @Nullable SegmentGraph load(ReaderAtEnd readerAtEnd) throws IOException
Loads the optional pre-compiled graph entry from the given tar file.- Returns:
- the graph or
nullif one was not found - Throws:
IOException- if the tar file could not be read
-
compute
@NotNull public static @NotNull SegmentGraph compute(SegmentArchiveReader archiveReader) throws IOException
Computes the graph from a segment archive- Returns:
- the computed segment graph.
- Throws:
IOException
-
parse
@NotNull public static @NotNull SegmentGraph parse(@NotNull @NotNull Buffer buffer)
-
write
public byte[] write()
-
size
public int size()
-
-