T
- @Internal
public final class WritableSerializer<T extends org.apache.hadoop.io.Writable>
extends org.apache.flink.api.common.typeutils.TypeSerializer<T>
TypeSerializer
for Writable
.限定符和类型 | 类和说明 |
---|---|
static class |
WritableSerializer.WritableSerializerConfigSnapshot<T extends org.apache.hadoop.io.Writable>
已过时。
This class is no longer used as a snapshot for any serializer.
It is fully replaced by
WritableSerializer.WritableSerializerSnapshot . |
static class |
WritableSerializer.WritableSerializerSnapshot<T extends org.apache.hadoop.io.Writable>
WritableSerializer snapshot class. |
构造器和说明 |
---|
WritableSerializer(Class<T> typeClass) |
限定符和类型 | 方法和说明 |
---|---|
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
T |
copy(T from) |
T |
copy(T from,
T reuse) |
T |
createInstance() |
T |
deserialize(org.apache.flink.core.memory.DataInputView source) |
T |
deserialize(T reuse,
org.apache.flink.core.memory.DataInputView source) |
WritableSerializer<T> |
duplicate() |
boolean |
equals(Object obj) |
int |
getLength() |
int |
hashCode() |
boolean |
isImmutableType() |
void |
serialize(T record,
org.apache.flink.core.memory.DataOutputView target) |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<T> |
snapshotConfiguration() |
public T createInstance()
createInstance
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public T copy(T from)
copy
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public T copy(T from, T reuse)
copy
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public int getLength()
getLength
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public void serialize(T record, org.apache.flink.core.memory.DataOutputView target) throws IOException
serialize
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
IOException
public T deserialize(org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
IOException
public T deserialize(T reuse, org.apache.flink.core.memory.DataInputView source) throws IOException
deserialize
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
IOException
public void copy(org.apache.flink.core.memory.DataInputView source, org.apache.flink.core.memory.DataOutputView target) throws IOException
copy
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
IOException
public boolean isImmutableType()
isImmutableType
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public WritableSerializer<T> duplicate()
duplicate
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public int hashCode()
hashCode
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
public boolean equals(Object obj)
equals
在类中 org.apache.flink.api.common.typeutils.TypeSerializer<T extends org.apache.hadoop.io.Writable>
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.