input-tables is a repository for Deephaven input table examples. It was created as the source code for the blog post "Deephaven data your way".
The following examples can be built via
./gradlew installDist
This will create and package the runnable applications under the app/build/install/app
directory.
These examples assume an already running Deephaven server. See deephaven-core#run-deephaven for more information.
By default, the applications will connect to the Deephaven target dh+plain://localhost:10000
, but that can be changed
by setting the environment variable DEEPHAVEN_TARGET
as appropriate.
The audit log is an example input table with a timestamp Timestamp
, string Type
, and string Log
schema.
./app/build/install/app/bin/audit-log-create
./app/build/install/app/bin/audit-log-add NEW_USER "Added new user 'devin'" PASSWORD_RESET "Password reset for user 'devin'"
The city weather is an example input table with a string City
, timestamp Timestamp
, and double Degrees
schema.
./app/build/install/app/bin/city-weather-create
./app/build/install/app/bin/city-weather-add "Minneapolis, MN" 35.4 "Seattle, WA" 53.7
The random numbers generator is an example input table with an int Index
, timestamp Timestamp
, int Iteration
, int Int
, long Long
, and double Double
schema.
./app/build/install/app/bin/random-numbers-create
./app/build/install/app/bin/random-numbers-generator