T - The output message type for sinking to downstream flink operator.@PublicEvolving public interface MongoDeserializationSchema<T> extends Serializable, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
BsonDocument into a flink managed
instance.| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(org.bson.BsonDocument document)
Deserializes the BSON document.
|
default void |
deserialize(org.bson.BsonDocument document,
org.apache.flink.util.Collector<T> out)
Deserializes the BSON document.
|
T deserialize(org.bson.BsonDocument document) throws IOException
document - The BSON document to deserialize.IOExceptiondefault void deserialize(org.bson.BsonDocument document,
org.apache.flink.util.Collector<T> out)
throws IOException
Can output multiple records through the Collector. Note that number and size of
the produced records should be relatively small. Depending on the source implementation
records can be buffered in memory or collecting records might delay emitting checkpoint
barrier.
document - The BSON document to deserialize.out - The collector to put the resulting messages.IOExceptionCopyright © 2022–2025 The Apache Software Foundation. All rights reserved.