Java interface with examples (ytsaurus-client)
We have Java SDK for YTsaurus which is published in maven.
A detailed description of the Java SDK is located here.
The examples are located at yt/java/ytsaurus-client-examples.
Before using the examples, read the instructions for obtaining the token.
Also you need to have tutorial tables on your YTsaurus cluster. It can be generated using this script:
./yt/yt/scripts/upload_tutorial_data/upload_tutorial_data.py --yt-directory //home/dev/tutorial --proxy <your-http-proxy>
Every example can be run from its directory using gradle:
cd yt/java/ytsaurus-client-examples/<some-example>
YT_PROXY=<your-http-proxy> gradle run
Working with Cypress
The example is located at yt/java/ytsaurus-client-examples/cypress-operations-example/src/main/java/tech/ytsaurus/example/ExampleCypressOperations.java.
Reading and writing static tables (Entity version)
The example is located at yt/java/ytsaurus-client-examples/read-write-entity-example/src/main/java/tech/ytsaurus/example/ExampleReadWriteEntity.java.
Reading and writing static tables (YTreeMapNode version)
The example is located at yt/java/ytsaurus-client-examples/read-write-ytree-example/src/main/java/tech/ytsaurus/example/ExampleReadWriteYTree.java.
Working with dynamic tables
The example is located at yt/java/ytsaurus-client-examples/dynamic-table-example/src/main/java/tech/ytsaurus/example/ExampleDynamicTable.java.
Map operation (UserClass version)
The example is located at yt/java/ytsaurus-client-examples/map-entity-example/src/main/java/tech/ytsaurus/example/ExampleMapEntity.java.
Map operation (YTreeMapNode version)
The example is located at yt/java/ytsaurus-client-examples/map-entity-example/src/main/java/tech/ytsaurus/example/ExampleMapEntity.java.
Reduce operation (UserClass version)
The example is located at yt/java/ytsaurus-client-examples/reduce-entity-example/src/main/java/tech/ytsaurus/example/ExampleReduceEntity.java.
Reduce operation (YTreeMapNode version)
The example is located at yt/java/ytsaurus-client-examples/reduce-ytree-example/src/main/java/tech/ytsaurus/example/ExampleReduceYTree.java.
MapReduce operation (UserClass version)
The example is located at yt/java/ytsaurus-client-examples/map-reduce-entity-example/src/main/java/tech/ytsaurus/example/ExampleMapReduceEntity.java.
MapReduce operation (YTreeMapNode version)
The example is located at yt/java/ytsaurus-client-examples/map-reduce-ytree-example/src/main/java/tech/ytsaurus/example/ExampleMapReduceYTree.java.