Native command operator example
This C program reads bytes from stdin and writes uppercase ASCII to stdout. The container's command executor bridges Arrow streams; the C program needs no Arrow dependency.
mkdir -p examples/operators/native/build
cc -O2 -Wall -Wextra -Werror -s \
-o examples/operators/native/build/uppercase examples/operators/native/uppercase.c
printf 'hello' | examples/operators/native/build/uppercase
(cd plugins/xstream-plugin-operator-executors && sbt 'testOnly xstream.operator.executors.CommandExecutorSpec')
The execution definition is operators/native_uppercase/1.0/operator.yaml, using the shared xstream/operator-python:1.0 runtime. The binary must match its OS, architecture and C library. Stdout becomes chunked output, without publishing a result Dataset. See native command contracts for arguments, resources and ports.
Use local operator libraries for development and source submission and review for public publication; the repository builds the final binary.