d45 / hyper-api-samples

Sample code to get started with the Hyper API.

Home Page:https://help.tableau.com/current/api/hyper_api/en-us/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hyper API Samples

Tableau Supported

Current Version: 0.0.10622

This repo is the home of the Hyper API sample code. All of the samples are available for each language supported by the Hyper API: Python, Java, C++, and C#/.Net (.NET Standard 2.0).

If you are looking to learn more about the Hyper API, please check out the official documentation.

What is the Hyper API?

For the unfamiliar, the Hyper API contains a set of functions you can use to automate your interactions with Tableau extract (.hyper) files. You can use the API to create new extract files, or to open existing files, and then insert, delete, update, or read data from those files. Using the Hyper API developers and administrators can:

  • Create extract files for data sources not currently supported by Tableau.
  • Automate custom extract, transform and load (ETL) processes (for example, implement rolling window updates or custom incremental updates).
  • Retrieve data from an extract file.

What do these samples do?

There are currently eight samples that are available in each language supported:

  • create_hyper_file_from_csv

    • Demonstrates how you can use the Hyper SQL COPY command to quickly populate a table in the .hyper file from the contents of a comma-separated value (CSV) file. This technique is the fastest way to bring data into an extract, as Hyper is reading data directly from the CSV file.
  • delete_data_from_existing_hyper_file

    • Demonstrates how you can use the Hyper SQL DELETE command to remove data from a table in the .hyper file.
  • insert_data_into_multiple_tables

    • This example shows how you can create and insert data into a .hyper file that contains multiple tables. Uses the Inserter class to add data to the tables and a Hyper SQL query to report the number of rows in the tables.
  • insert_data_into_single_table

    • Demonstrates how you to add data to a single table named Extract that uses the Extract schema. Uses the Inserter class to add data to the table and a Hyper SQL query to report the number of rows in the table.
  • read_and_print_data_from_existing_hyper_file

    • Demonstrates how to read data from an existing .hyper file and print the output to the console.
  • update_data_in_existing_hyper_file

    • This example demonstrates how you can use the Hyper SQL UPDATE command to change values in a .hyper file.
  • insert_spatial_data_to_a_hyper_file

    • This example demonstrates how to insert spatial data (WKT) to a .hyper file
  • insert_data_using_expressions

    • This example shows how you can use SQL expressions in Hyper API Inserter to transform or compute data on the fly during data insertion

How do I install the Hyper API?

It is a prerequisite that to work with these code samples, the Hyper API is installed in your language of choice. Head to our official Hyper API Documentation to get it up and running.

How do I get help or give feedback?

If you have questions, want to submit ideas, or give feedback on the code, please do so by submitting an issue on this project.

Contributions

Code contributions and improvements by the community are welcomed and accepted on a case-by-case basis. See the LICENSE file for current open-source licensing and use information.

Before we can accept pull requests from contributors, we require a signed Contributor License Agreement (CLA).

About

Sample code to get started with the Hyper API.

https://help.tableau.com/current/api/hyper_api/en-us/index.html

License:MIT License


Languages

Language:Java 27.2%Language:C# 24.0%Language:C++ 23.6%Language:Python 20.9%Language:CMake 4.1%Language:Batchfile 0.1%Language:Shell 0.1%