Java API for Designing Datasets
Applies to: Kyvos Enterprise Kyvos Cloud (SaaS on AWS) Kyvos AWS Marketplace
Kyvos Azure Marketplace Kyvos GCP Marketplace Kyvos Single Node Installation (Kyvos SNI)
Overview
Create a dataset.
You will need to specify the registered file name as input (could be a Dataset or a Registered File). This will add a Fetch step by default with provided registered file.
Add different steps to the created dataset.Format step
Filter step
GroupBy step
Formula step
Lookup step
ExternalTask step
Join step
Union step
To add a second Fetch step, you will need to specify a registered file name as input.
Preview dataset at any specified step.
Save the dataset object in the repository.
Retrieve the existing dataset object by name from the repository.
Delete any step in the dataset by name.
Modify materialize/other properties at the output step.
Update dataset object in the repository.
Process dataset-object.
Process dataset with NOW option
Process dataset with ONCE option
Cancel dataset process, if currently running
Example
Create the Dataset Object.
This API fetches the Dataset object and sets column details in the Fetch step./* * method to create new Dataset object in Repository Manager. * @param doName: Dataset/Registered File to be associated with Input step. * @param requestorUserInfo: Object of type UserInfo. * @return Dataset: Object of type Dataset. */ public Dataset createDatasetObject(String doName, UserInfo requestorUserInfo); /** * method to create new Dataset object to use dataset inside a folder in Repository Manager. * @param doName: Dataset/Registered File to be associated with Input step. * @param folderName: Name of the folder that contains dataset/registered file to be associated with Input step. * @param requestorUserInfo: Object of type UserInfo containing information about logged in user. * @return datasetObj: Object of type Dataset. */ public Dataset createDatasetObject(String doName, String folderName, UserInfo requestorUserInfo);
Add different steps in dataset.
Add Format step after specified step to:
Add new column
Modify existing column
/** * method to add Format step in transformation. * @param inputStepName: Name of the step after which Format step has to be added. * @return formatStep: Object of type FormatStep. */ public FormatStep addFormatStep(String inputStepName);
Add new column
/** * method to add new column in Format step. * @param columnName: Name of the column. * @param dataType: Data type of the column. * @param staticValue: Static value to be used. * @return formatColumn: Object of type FormatColumn. */ public FormatColumn addNewColumn(String columnName, String dataType, String staticValue);code
Modify existing column
Update column caption
Update column name
Update column data type
Update column input format
Update column output format
Add Filter step to filter out the data by specifying filter criteria
Add filter step after the specified step
Add filter condition with a single filter value. Can also be used in the case of INLIST and NOTINLIST operation by specifying comma (,) separated values.
Add filter condition for BETWEEN operation by specifying firstValue (from) and secondValue (to)
Add GroupBy step after specified step for grouping the data based upon GroupBy fields
Add GroupBy step after specified step
Add GroupBy field by specifying the field name
Add GroupBy field by specifying field name, function name, and filed alias name
Add output field by specifying field name
Add output field by specifying field name, function name, and field alias name
Add formula step to add any java formula
Add Formula step after specified step
Add Lookup step to select any lookup type dataset with reference field to get location related data for current dataset field
Add formula by specifying formula name, formula return type and formula expression
Add External Task step to run any external script
Add External Task step after any specified step
Set class name property value
Set parameters property value
Add new property by specifying property name with value
Add join type to join two different steps
Add join step by specifying step names to be joined together
Add join condition by specifying columns names for both input steps
Add Union step by specifying two different steps as Input
Add Union step after specified step
API for creating Fetch step, passing positions, and Dataset Object ID.
API to preview dataset at any specified step.
Add the Dataset Object to the repository.
API to retrieve the existing dataset object by name from the repository.
API to delete any step in dataset by name.
API to modify materialize/other properties at output step.
Get output step of dataset
Add column fields at output steps
Set materialize property at output step
Add KML information at output step
API to update the dataset object in the repository.
Process a dataset object.
Process dataset with NOW optionProcess dataset with ONCE option
Cancel dataset process if currently running
Copyright Kyvos, Inc. All rights reserved.