Class ProtobufBlobConverter
java.lang.Object
com.here.platform.data.client.flink.impl.decoders.ProtobufBlobConverter
- All Implemented Interfaces:
BlobConverter,BlobDecoder,BlobEncoder,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtobufBlobConverter(PartitionDescriptorHolder descriptorHolder, boolean metadataFields) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.java.typeutils.RowTypeInfoorg.apache.flink.types.RowdecodeRow(byte[] data) static org.apache.flink.api.java.typeutils.RowTypeInfoderiveFlinkDescriptor(com.google.protobuf.Descriptors.Descriptor message, int referentialDepth) derives a name and a type for a flink column from protobuf field descriptionorg.apache.flink.api.java.typeutils.RowTypeInfocom.here.platform.data.client.scaladsl.NewPartition.BufferedBlobencodeRow(org.apache.flink.types.Row dataRow) booleanstatic intcom.google.protobuf.MessagerowToProtobufMessage(org.apache.flink.types.Row row, org.apache.flink.api.java.typeutils.RowTypeInfo rowTypeInfo, com.google.protobuf.Descriptors.Descriptor messageDescriptor) <T> voidsetField(org.apache.flink.types.Row row, org.apache.flink.api.java.typeutils.RowTypeInfo rowTypeInfo, com.google.protobuf.Descriptors.FieldDescriptor fd, com.google.protobuf.DynamicMessage.Builder messageBuilder) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.here.platform.data.client.flink.impl.decoders.BlobDecoder
decodeRowCollectionMethods inherited from interface com.here.platform.data.client.flink.impl.decoders.BlobEncoder
encodeRowCollection
-
Constructor Details
-
ProtobufBlobConverter
-
-
Method Details
-
maxReferentialDepth
public static int maxReferentialDepth() -
deriveFlinkDescriptor
public static org.apache.flink.api.java.typeutils.RowTypeInfo deriveFlinkDescriptor(com.google.protobuf.Descriptors.Descriptor message, int referentialDepth) derives a name and a type for a flink column from protobuf field description -
expansionType
public boolean expansionType()- Specified by:
expansionTypein interfaceBlobConverter
-
blobRowTypeInfo
public org.apache.flink.api.java.typeutils.RowTypeInfo blobRowTypeInfo()- Specified by:
blobRowTypeInfoin interfaceBlobConverter
-
emptyProtobufRowType
public org.apache.flink.api.java.typeutils.RowTypeInfo emptyProtobufRowType() -
decodeRow
public org.apache.flink.types.Row decodeRow(byte[] data) - Specified by:
decodeRowin interfaceBlobDecoder
-
encodeRow
public com.here.platform.data.client.scaladsl.NewPartition.BufferedBlob encodeRow(org.apache.flink.types.Row dataRow) - Specified by:
encodeRowin interfaceBlobEncoder
-
rowToProtobufMessage
public com.google.protobuf.Message rowToProtobufMessage(org.apache.flink.types.Row row, org.apache.flink.api.java.typeutils.RowTypeInfo rowTypeInfo, com.google.protobuf.Descriptors.Descriptor messageDescriptor) -
setField
public <T> void setField(org.apache.flink.types.Row row, org.apache.flink.api.java.typeutils.RowTypeInfo rowTypeInfo, com.google.protobuf.Descriptors.FieldDescriptor fd, com.google.protobuf.DynamicMessage.Builder messageBuilder)
-