@Internal @Deprecated public class MigrationStreamStateHandle extends Object implements StreamStateHandle, Migration
Constructor and Description |
---|
MigrationStreamStateHandle(StreamStateHandle delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
discardState()
Deprecated.
Discards the state referred to by this handle, to free up resources in
the persistent storage.
|
long |
getStateSize()
Deprecated.
Returns the size of the state in bytes.
|
FSDataInputStream |
openInputStream()
Deprecated.
Returns an
FSDataInputStream that can be used to read back the data that
was previously written to the stream. |
public MigrationStreamStateHandle(StreamStateHandle delegate)
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
IOException
public void discardState() throws Exception
StateObject
discardState
in interface StateObject
Exception
public long getStateSize()
StateObject
If the the size is not known, return 0
.
getStateSize
in interface StateObject
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.