public class EmptySegmentFileStateHandle extends SegmentFileStateHandle
SegmentFileStateHandle
that is only used as a placeholder.StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
Modifier and Type | Field and Description |
---|---|
static EmptySegmentFileStateHandle |
INSTANCE |
stateSize
Modifier and Type | Method and Description |
---|---|
FSDataInputStream |
openInputStream()
Returns an
FSDataInputStream that can be used to read back the data that was
previously written to the stream. |
asBytesIfInMemory, collectSizeStats, discardState, equals, getFilePath, getLogicalFileId, getScope, getStartPos, getStateSize, getStreamStateHandleID, hashCode, toString
public static final EmptySegmentFileStateHandle INSTANCE
public FSDataInputStream openInputStream() throws IOException
StreamStateHandle
FSDataInputStream
that can be used to read back the data that was
previously written to the stream.openInputStream
in interface StreamStateHandle
openInputStream
in class SegmentFileStateHandle
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.