public interface StreamStateHandle extends StateObject
StateObject
that represents state that was written to a stream. The data can be read
back via openInputStream()
.Modifier and Type | Method and Description |
---|---|
Optional<byte[]> |
asBytesIfInMemory() |
FSDataInputStream |
openInputStream()
Returns an
FSDataInputStream that can be used to read back the data that was
previously written to the stream. |
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()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.