@Internal public class BinaryRowDataSerializer extends AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>
BinaryRowData.| 限定符和类型 | 类和说明 |
|---|---|
static class |
BinaryRowDataSerializer.BinaryRowDataSerializerSnapshot
TypeSerializerSnapshot for BinaryRowDataSerializer. |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LENGTH_SIZE_IN_BYTES |
| 构造器和说明 |
|---|
BinaryRowDataSerializer(int numFields) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkSkipReadForFixLengthPart(org.apache.flink.runtime.memory.AbstractPagedInputView source)
We need skip bytes to read when the remain bytes of current segment is not
enough to write binary row fixed part.
|
org.apache.flink.table.data.binary.BinaryRowData |
copy(org.apache.flink.table.data.binary.BinaryRowData from) |
org.apache.flink.table.data.binary.BinaryRowData |
copy(org.apache.flink.table.data.binary.BinaryRowData from,
org.apache.flink.table.data.binary.BinaryRowData reuse) |
void |
copy(org.apache.flink.core.memory.DataInputView source,
org.apache.flink.core.memory.DataOutputView target) |
void |
copyFromPagesToView(org.apache.flink.runtime.memory.AbstractPagedInputView source,
org.apache.flink.core.memory.DataOutputView target)
Copy a binaryRow which stored in paged input view to output view.
|
org.apache.flink.table.data.binary.BinaryRowData |
createInstance() |
org.apache.flink.table.data.binary.BinaryRowData |
deserialize(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.core.memory.DataInputView source) |
org.apache.flink.table.data.binary.BinaryRowData |
deserialize(org.apache.flink.core.memory.DataInputView source) |
org.apache.flink.table.data.binary.BinaryRowData |
deserializeFromPages(org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
De-serializes a record from the given source paged input view.
|
org.apache.flink.table.data.binary.BinaryRowData |
deserializeFromPages(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
Reuse version of
AbstractRowDataSerializer.deserializeFromPages(AbstractPagedInputView). |
org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData> |
duplicate() |
boolean |
equals(Object obj) |
int |
getArity()
Get the number of fields.
|
int |
getFixedLengthPartSize() |
int |
getLength() |
int |
getSerializedRowFixedPartLength()
Return fixed part length to serialize one row.
|
int |
hashCode() |
boolean |
isImmutableType() |
org.apache.flink.table.data.binary.BinaryRowData |
mapFromPages(org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
Map a record from the given source paged input view.
|
org.apache.flink.table.data.binary.BinaryRowData |
mapFromPages(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
Reuse version of
AbstractRowDataSerializer.mapFromPages(AbstractPagedInputView). |
void |
pointTo(int length,
org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
Point row to memory segments with offset(in the AbstractPagedInputView) and length.
|
void |
serialize(org.apache.flink.table.data.binary.BinaryRowData record,
org.apache.flink.core.memory.DataOutputView target) |
int |
serializeToPages(org.apache.flink.table.data.binary.BinaryRowData record,
org.apache.flink.runtime.memory.AbstractPagedOutputView headerLessView)
Serializes the given record to the given target paged output view.
|
static void |
serializeWithoutLengthSlow(org.apache.flink.table.data.binary.BinaryRowData record,
org.apache.flink.core.memory.MemorySegmentWritable out) |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.table.data.binary.BinaryRowData> |
snapshotConfiguration() |
org.apache.flink.table.data.binary.BinaryRowData |
toBinaryRow(org.apache.flink.table.data.binary.BinaryRowData rowData)
Convert a
RowData to a BinaryRowData. |
public static final int LENGTH_SIZE_IN_BYTES
public boolean isImmutableType()
isImmutableType 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData> duplicate()
duplicate 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public org.apache.flink.table.data.binary.BinaryRowData createInstance()
createInstance 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public org.apache.flink.table.data.binary.BinaryRowData copy(org.apache.flink.table.data.binary.BinaryRowData from)
copy 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public org.apache.flink.table.data.binary.BinaryRowData copy(org.apache.flink.table.data.binary.BinaryRowData from,
org.apache.flink.table.data.binary.BinaryRowData reuse)
copy 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public int getLength()
getLength 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public void serialize(org.apache.flink.table.data.binary.BinaryRowData record,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
serialize 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic org.apache.flink.table.data.binary.BinaryRowData deserialize(org.apache.flink.core.memory.DataInputView source)
throws IOException
deserialize 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic org.apache.flink.table.data.binary.BinaryRowData deserialize(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.core.memory.DataInputView source)
throws IOException
deserialize 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic int getArity()
AbstractRowDataSerializergetArity 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>public org.apache.flink.table.data.binary.BinaryRowData toBinaryRow(org.apache.flink.table.data.binary.BinaryRowData rowData)
throws IOException
AbstractRowDataSerializerRowData to a BinaryRowData.toBinaryRow 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic int serializeToPages(org.apache.flink.table.data.binary.BinaryRowData record,
org.apache.flink.runtime.memory.AbstractPagedOutputView headerLessView)
throws IOException
AbstractRowDataSerializerBinaryRowData.serializeToPages 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>record - The record to serialize.headerLessView - The output view to write the serialized data to.IOException - Thrown, if the serialization encountered an I/O related error.
Typically raised by the output view, which may have an underlying
I/O channel to which it delegates.public static void serializeWithoutLengthSlow(org.apache.flink.table.data.binary.BinaryRowData record,
org.apache.flink.core.memory.MemorySegmentWritable out)
throws IOException
IOExceptionpublic org.apache.flink.table.data.binary.BinaryRowData deserializeFromPages(org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
throws IOException
AbstractRowDataSerializerBinaryRowData. Typically, the content read from source should be copied out when
de-serializing, and we are not expecting the underlying data from source is reused. If you
have such requirement, see AbstractRowDataSerializer.mapFromPages(AbstractPagedInputView).deserializeFromPages 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>headerLessView - The input view from which to read the data.IOException - Thrown, if the de-serialization encountered an I/O related error.
Typically raised by the input view, which may have an underlying I/O
channel from which it reads.public org.apache.flink.table.data.binary.BinaryRowData deserializeFromPages(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
throws IOException
AbstractRowDataSerializerAbstractRowDataSerializer.deserializeFromPages(AbstractPagedInputView).deserializeFromPages 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic org.apache.flink.table.data.binary.BinaryRowData mapFromPages(org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
throws IOException
AbstractRowDataSerializerIf you choose the zero copy way, you have to deal with the lifecycle of the pages properly.
mapFromPages 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>headerLessView - The input view from which to read the data.IOException - Thrown, if the de-serialization encountered an I/O related error.
Typically raised by the input view, which may have an underlying I/O
channel from which it reads.public org.apache.flink.table.data.binary.BinaryRowData mapFromPages(org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
throws IOException
AbstractRowDataSerializerAbstractRowDataSerializer.mapFromPages(AbstractPagedInputView).mapFromPages 在类中 AbstractRowDataSerializer<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic void copyFromPagesToView(org.apache.flink.runtime.memory.AbstractPagedInputView source,
org.apache.flink.core.memory.DataOutputView target)
throws IOException
source - source paged input view where the binary row storedtarget - the target output view.IOExceptionpublic void pointTo(int length,
org.apache.flink.table.data.binary.BinaryRowData reuse,
org.apache.flink.runtime.memory.AbstractPagedInputView headerLessView)
throws IOException
length - row length.reuse - reuse BinaryRowData object.headerLessView - source memory segments container.IOExceptionpublic void checkSkipReadForFixLengthPart(org.apache.flink.runtime.memory.AbstractPagedInputView source)
throws IOException
BinaryRowData.IOExceptionpublic int getSerializedRowFixedPartLength()
public int getFixedLengthPartSize()
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<org.apache.flink.table.data.binary.BinaryRowData>IOExceptionpublic boolean equals(Object obj)
equals 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public int hashCode()
hashCode 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<org.apache.flink.table.data.binary.BinaryRowData> snapshotConfiguration()
snapshotConfiguration 在类中 org.apache.flink.api.common.typeutils.TypeSerializer<org.apache.flink.table.data.binary.BinaryRowData>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.