public class TypeSerializerSnapshotSerializationUtil extends Object
TypeSerializerSnapshot
.Constructor and Description |
---|
TypeSerializerSnapshotSerializationUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> TypeSerializerSnapshot<T> |
readAndInstantiateSnapshotClass(DataInputView in,
ClassLoader cl) |
static <T> TypeSerializerSnapshot<T> |
readSerializerSnapshot(DataInputView in,
ClassLoader userCodeClassLoader)
Reads from a data input view a
TypeSerializerSnapshot that was previously written
using #writeSerializerSnapshot(DataOutputView, TypeSerializerSnapshot . |
static <T> void |
writeSerializerSnapshot(DataOutputView out,
TypeSerializerSnapshot<T> serializerSnapshot)
Writes a
TypeSerializerSnapshot to the provided data output view. |
public TypeSerializerSnapshotSerializationUtil()
public static <T> void writeSerializerSnapshot(DataOutputView out, TypeSerializerSnapshot<T> serializerSnapshot) throws IOException
TypeSerializerSnapshot
to the provided data output view.
It is written with a format that can be later read again using readSerializerSnapshot(DataInputView, ClassLoader)
.
out
- the data output viewserializerSnapshot
- the serializer configuration snapshot to writeIOException
public static <T> TypeSerializerSnapshot<T> readSerializerSnapshot(DataInputView in, ClassLoader userCodeClassLoader) throws IOException
TypeSerializerSnapshot
that was previously written
using #writeSerializerSnapshot(DataOutputView, TypeSerializerSnapshot
.in
- the data input viewuserCodeClassLoader
- the user code class loader to useIOException
public static <T> TypeSerializerSnapshot<T> readAndInstantiateSnapshotClass(DataInputView in, ClassLoader cl) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.