Search in sources :

Example 6 with StateMetaInfoReader

use of org.apache.flink.runtime.state.metainfo.StateMetaInfoReader in project flink by apache.

the class ChangelogBackendLogApplier method readStateMetaInfoSnapshot.

private static StateMetaInfoSnapshot readStateMetaInfoSnapshot(DataInputView in, ClassLoader classLoader) throws IOException {
    int version = in.readInt();
    StateMetaInfoReader reader = StateMetaInfoSnapshotReadersWriters.getReader(version, KEYED_STATE);
    return reader.readStateMetaInfoSnapshot(in, classLoader);
}
Also used : StateMetaInfoReader(org.apache.flink.runtime.state.metainfo.StateMetaInfoReader)

Aggregations

StateMetaInfoReader (org.apache.flink.runtime.state.metainfo.StateMetaInfoReader)6 StateMetaInfoSnapshot (org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot)4 ByteArrayInputStreamWithPos (org.apache.flink.core.memory.ByteArrayInputStreamWithPos)3 ByteArrayOutputStreamWithPos (org.apache.flink.core.memory.ByteArrayOutputStreamWithPos)3 DataInputViewStreamWrapper (org.apache.flink.core.memory.DataInputViewStreamWrapper)3 DataOutputViewStreamWrapper (org.apache.flink.core.memory.DataOutputViewStreamWrapper)3 Test (org.junit.Test)3 IOException (java.io.IOException)2 BackwardsCompatibleSerializerSnapshot (org.apache.flink.api.common.typeutils.BackwardsCompatibleSerializerSnapshot)1 TypeSerializerSnapshot (org.apache.flink.api.common.typeutils.TypeSerializerSnapshot)1 Tuple2 (org.apache.flink.api.java.tuple.Tuple2)1