All positional values are relative to file start, not the chunk.
Modifier and Type | Field and Description |
---|---|
private final Deque | |
private boolean | |
private long | |
private final Path | |
private final Predicate | |
private final RecordingInput | |
private long | |
private final RecordingOutput | |
private LongMap |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public boolean | |
public void | |
public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
public void | |
public RecordingInput | |
pack-priv Constants | |
public CheckpointEvent | |
public void | |
private void | |
private void | |
public void | |
private void | |
private void | |
public void | |
private void |
checkpoints | back to summary |
---|---|
private final Deque<CheckpointEvent> checkpoints |
chunkComplete | back to summary |
---|---|
private boolean chunkComplete |
chunkStartPosition | back to summary |
---|---|
private long chunkStartPosition |
destination | back to summary |
---|---|
private final Path destination |
filter | back to summary |
---|---|
private final Predicate<RecordedEvent> filter |
input | back to summary |
---|---|
private final RecordingInput input |
lastCheckpoint | back to summary |
---|---|
private long lastCheckpoint |
output | back to summary |
---|---|
private final RecordingOutput output |
pools | back to summary |
---|---|
private LongMap<Constants> pools |
ChunkWriter | back to summary |
---|---|
public ChunkWriter(Path source, Path destination, Predicate<RecordedEvent> filter) throws IOException |
accept | back to summary |
---|---|
public boolean accept(RecordedEvent event) |
beginChunk | back to summary |
---|---|
public void beginChunk(ChunkHeader header) throws IOException |
close | back to summary |
---|---|
public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
|
endChunk | back to summary |
---|---|
public void endChunk(ChunkHeader header) throws IOException |
getInput | back to summary |
---|---|
public RecordingInput getInput() |
getPool | back to summary |
---|---|
pack-priv Constants getPool(Type type) |
newCheckpointEvent | back to summary |
---|---|
public CheckpointEvent newCheckpointEvent(long startPosition) |
touch | back to summary |
---|---|
public void touch(Object object) |
touchRef | back to summary |
---|---|
private void touchRef(Reference ref) |
updateHeader | back to summary |
---|---|
private void updateHeader(long size, long constantPosition, long metadataPosition) throws IOException |
write | back to summary |
---|---|
public void write(long startPosition, long endPosition) throws IOException |
write | back to summary |
---|---|
private void write(CheckpointEvent event, long delta) throws IOException |
writeCheckpointEvents | back to summary |
---|---|
private void writeCheckpointEvents(long before) throws IOException |
writeEvent | back to summary |
---|---|
public void writeEvent(long startPosition, long endPosition) throws IOException |
writeMetadataEvent | back to summary |
---|---|
private void writeMetadataEvent(ChunkHeader header) throws IOException |