public final class ProtobufTypeSerializer<M extends com.google.protobuf.Message>
extends org.apache.flink.api.common.typeutils.TypeSerializer<M>
Modifier and Type | Method and Description |
---|---|
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
M |
copy(M from) |
M |
copy(M from,
M reuse) |
M |
createInstance() |
M |
deserialize(org.apache.flink.core.memory.DataInputView source) |
M |
deserialize(M reuse,
org.apache.flink.core.memory.DataInputView source) |
org.apache.flink.api.common.typeutils.TypeSerializer<M> |
duplicate() |
boolean |
equals(java.lang.Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(M record,
org.apache.flink.core.memory.DataOutputView target) |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<M> |
snapshotConfiguration() |
public org.apache.flink.api.common.typeutils.TypeSerializer<M> duplicate()
duplicate
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public boolean isImmutableType()
isImmutableType
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public M createInstance()
createInstance
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public M copy(M from)
copy
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public M copy(M from, M reuse)
copy
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public int getLength()
getLength
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public void serialize(M record, org.apache.flink.core.memory.DataOutputView target) throws java.io.IOException
serialize
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
java.io.IOException
public M deserialize(org.apache.flink.core.memory.DataInputView source) throws java.io.IOException
deserialize
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
java.io.IOException
public M deserialize(M reuse, org.apache.flink.core.memory.DataInputView source) throws java.io.IOException
deserialize
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
java.io.IOException
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws java.io.IOException
copy
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
public int hashCode()
hashCode
in class org.apache.flink.api.common.typeutils.TypeSerializer<M extends com.google.protobuf.Message>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.