...
Kyvos Azure Marketplace
Kyvos GCP Marketplace
Kyvos Single Node Installation (Kyvos SNI)
...
Overview
Build Process a cube semantic model object
...
.
Process a semantic model with the NOW option
Build cube Process a semantic model with ONCE option
Cancel cube build a semantic model job if currently running
Resume cube builda semantic model job
Replace partitions
Data profile for Cube the semantic model with the ONCE option
Data profile for Cube the semantic model with the NOW option
Examples
Build cube with Process a semantic model with the NOW option
Code Block language java /** * method to build semantic Cubemodel Object * @param cubeNamesModelName: name of the semantoc cubemodel * @param folderName: name of the folder containing cubesemantic model * @param buildType: type of the buildjob , FULL or INCREMENTAL * @param additionalParams: JSONObject containing fields: userParams, replacePartition, consolidationType, buildSourceDatasets, * recommendationParamsJson, minimalAggregation, minimalAggregation, factDataPartitionSize, * factDataPartitionCount, incrementalJobProcessType * factDataPartitionCount, incrementalJobProcessType, buildConnectionName */ public void buildCubeNow(String cubeName, String folderName, String buildType, UserInfo userInfo, JSONObject additionalParams);
Build cube with Process a semantic model with the ONCE option
Code Block language java /** * method to process the buildsemantic Cubemodel Object * @param cubeNamesModelName: name of the cubesemantic model * @param folderName: name of the folder containing cubesemantic model * @param buildType: type of the build job, FULL or INCREMENTAL * @param additionalParams: JSONObject containing fields: userParams, onceDateTime, replacePartition, consolidationType, buildSourceDatasets, * recommendationParamsJson, minimalAggregation, minimalAggregation, factDataPartitionSize, * factDataPartitionCount, incrementalJobProcessType, buildConnectionName */ public void buildCubeOnce(String cubeName, String folderName, String buildType, UserInfo userInfo, JSONObject additionalParams);
Cancel cube build semantic model job if currently running.
Code Block language java /** * Method to add ONCE build schedule for the semantic cubemodel object * @param cubeNamesModelName: name of the semantic cubemodel * @param folderName: name of the folder containing cubesemantic model * @param buildType: type of the buildjob, FULL or INCREMENTAL * @param onceDateTime: date time in format mm/dd/yyyy hh:mm * @param userInfo: Object of type UserInfo containing information about logged in user * @param incrementalJobProcessType: type of process: FACT_ADJUSTMENTS */ public void buildCubeOnce(String cubeNamesModelName, String folderName, String buildType, String onceDateTime, UserInfo userInfo, String incrementalJobProcessType);
Resume cube semantic model build
Code Block language java /** * method to resume semantic cubemodel build for semantic cubemodel object in ReportObjectManager. * @param historyId: history id of last resumable semantic cubemodel build. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public void resumeBuild(String historyId, UserInfo userInfo);
Replace partitions.
Code Block language java /** * method to launch Replace Partition build and incremental buildjob with Replace partition: * @param CubeObject: Object of type CubeObject. * @param PartitionInfo: Object of type PartitionInfo. * @param userInfo: Object of type UserInfo containing information about logged in user. */ public void launchReplacePartitionBuild(CubeObject co, PartitionInfo replacePartitionInfoObj, UserInfo userInfo); public void launchReplacePartitionWithIncrementalBuild(CubeObject co, PartitionInfo replacePartitionInfoObj, UserInfo userInfo);
Data profile for a cube semantic model with ONCE option
Code Block language java /** * method to add ONCE Data Profile schedule for semantic Cubemodel object * @param co: CubeObject to be profiled * @param onceDateTime: date time in format mm/dd/yyyy hh:mm * @param profile: Object of type DataProfile containing field information * @param userInfo: Object of type UserInfo containing information about logged in user * @param buildConnectionName: name of build connection */ public void profileCubeOnce(CubeObject co, String onceDateTime, DataProfile profile, UserInfo userInfo, String buildConnectionName);
Data profile for a cube semantic model with the NOW option.
Code Block language java /** * method to add NOW Data Profile schedule for semantic Cubemodel object * @param co: CubeObject to be profiled * @param profile: Object of type DataProfile containing field information * @param userInfo: Object of type UserInfo containing information about logged in user * @param buildConnectionName: name of build connection */ public void profileCubeNow(CubeObject co, DataProfile profile, UserInfo userInfo, String buildConnectionName;
Parse connectionXML and set internal properties of DBConnection.
Code Block /** * Constructor accepting connectionXML as input. Connection properties will be set by parsing this XML. * @param connectoinXML */ public DBConnection(String connectoinXML)
Set a property in a DBConnection object.
Code Block /** * Method to set connection property. * @param propertyName * @param propertyValue */ public void setProperty(String propertyName, String propertyValue)
Set a property in a DBConnection. It is useful when a value is encrypted.
Code Block /** * Method to set connection property. * @param propertyName * @param propertyValue * @param isEncrypted * @param cryptographicAlgorythm */ public void setProperty(String propertyName, String propertyValue, String isEncrypted, String cryptographicAlgorythm)
...
Code Block |
---|
/*Method to trigger semantic model Cubeprocess Build *BuildType Can be FULL, INCREMENTAL */ public static void buildCubeNow(SchedulerManager schedulerManager, UserInfo userInfo) { schedulerManager.buildCubeNow("CubeName", "CubeFolderName", "BuildType", userInfo); } /*Method to Cancel Cubesemantic model Buildjob *BuildType Can be FULL, INCREMENTAL */ public static void cancelCubeBuild(SchedulerManager schedulerManager, UserInfo userInfo){ schedulerManager.cancelCubeBuild("CubeName", "CubeFolderName", "BuildType", userInfo); } /*Method to Resume semantic Cubemodel Buildjob*/ public static void resumeBuild(ReportObjectManager repObjManager, UserInfo userInfo){ try { repObjManager.resumeBuild("CubeBuildHistoryID", userInfo); } catch (ReportObjectException e) { e.printStackTrace(); } } /*Method to trigger Data Profile on the Cubesemantic model*/ public static void profileCubeNow(SchedulerManager schedulerManager, RepositoryManager repManager, UserInfo userInfo) { try { /*CubeSemantic model and Cubeits Folderfolder should be present on Kyvos*/ CubeObject cubeObject = repManager.getCubeByName("CubeName", "CubeFolderName", userInfo); DataProfile profile = new DataProfile(); schedulerManager.profileCubeNow(cubeObject, profile, userInfo); } catch (ReportObjectException e) { e.printStackTrace(); } } |