public interface StreamStateHandle extends StateObject
StateObject
that represents state that was written to a stream. The data can be read
back via openInputStream()
.StateObject.StateObjectLocation, StateObject.StateObjectSizeStatsCollector
Modifier and Type | Method and Description |
---|---|
Optional<byte[]> |
asBytesIfInMemory() |
PhysicalStateHandleID |
getStreamStateHandleID() |
FSDataInputStream |
openInputStream()
Returns an
FSDataInputStream that can be used to read back the data that was
previously written to the stream. |
collectSizeStats, discardState, getStateSize
FSDataInputStream openInputStream() throws IOException
FSDataInputStream
that can be used to read back the data that was
previously written to the stream.IOException
Optional<byte[]> asBytesIfInMemory()
PhysicalStateHandleID getStreamStateHandleID()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.