@NotThreadSafe
public final class ProtobufSerializer<M extends com.google.protobuf.Message>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
M |
deserialize(org.apache.flink.core.memory.DataInputView source) |
ProtobufSerializer<M> |
duplicate() |
static <M extends com.google.protobuf.Message> |
forMessageGeneratedClass(java.lang.Class<M> type) |
void |
serialize(M record,
org.apache.flink.core.memory.DataOutputView target) |
public static <M extends com.google.protobuf.Message> ProtobufSerializer<M> forMessageGeneratedClass(java.lang.Class<M> type)
public void serialize(M record, org.apache.flink.core.memory.DataOutputView target) throws java.io.IOException
java.io.IOException
public M deserialize(org.apache.flink.core.memory.DataInputView source) throws java.io.IOException
java.io.IOException
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws java.io.IOException
java.io.IOException
public ProtobufSerializer<M> duplicate()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.