Package ai.chalk.flink.core
Interface ChalkRowConverter<IN>
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Maps a single stream element of type
IN to a Chalk feature row: a map from
fully-qualified feature name (e.g. "user.id", "user.score") to its value for
this record. The map MUST include the resolver's primary-key feature (e.g. "user.id").
Values should have a consistent runtime type per feature across the stream — Chalk validates
types on ingest. Supported value types mirror the Chalk Java client's Arrow encoding: Long,
Integer, Double, Float, Boolean, String, byte[],
java.time.Instant, and lists/maps thereof. A null value is uploaded as a null cell.
Return null from toRow(IN) to drop an element (it will not be uploaded).
Must be Serializable because Flink ships it to the TaskManagers.
-
Method Summary
-
Method Details
-
toRow
-
identity
Identity converter for streams that already carryMap<String, Object>rows.
-