Class ChalkUploadFeaturesJob

java.lang.Object
ai.chalk.flink.examples.ChalkUploadFeaturesJob

public final class ChalkUploadFeaturesJob extends Object
Minimal end-to-end example: build a stream of records and push them into Chalk's online store via upload_features. Run against a real environment with credentials in the environment:
   export CHALK_CLIENT_ID=...
   export CHALK_CLIENT_SECRET=...
   export CHALK_ENVIRONMENT_ID=...   # optional; defaults to the token's primary environment

   flink run -c ai.chalk.flink.examples.ChalkUploadFeaturesJob build/libs/chalk-flink-sink-0.1.0.jar
 
Swap fromElements for a real source (Kafka, Kinesis, ...); everything downstream is the same. The only requirement on the converter is that each row include the resolver's primary-key feature (user.id here).