-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Aspose.Cells Cloud SDK 24.6.0
- Loading branch information
1 parent
7796ff7
commit 0bc1411
Showing
30 changed files
with
502 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package com.aspose.cloud.cells.api; | ||
|
||
import com.aspose.cloud.cells.client.*; | ||
import com.aspose.cloud.cells.model.*; | ||
import com.aspose.cloud.cells.request.*; | ||
|
||
import org.junit.Test; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.io.File; | ||
import java.util.HashMap; | ||
|
||
public class ExamplePostDataTransformation { | ||
private CellsApi api; | ||
public ExamplePostDataTransformation(){ | ||
try { | ||
api = new CellsApi( | ||
System.getenv("CellsCloudClientId"), | ||
System.getenv("CellsCloudClientSecret"), | ||
"v3.0", | ||
System.getenv("CellsCloudApiBaseUrl") | ||
); | ||
} catch (ApiException e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
public void Run(){ | ||
try{ | ||
String remoteFolder = "TestData/In"; | ||
|
||
String localName = "BookTableL2W.xlsx"; | ||
String remoteName = "BookTableL2W.xlsx"; | ||
|
||
UploadFileRequest uploadFileRequest = new UploadFileRequest(); | ||
uploadFileRequest.setPath( remoteFolder + "/" + remoteName ); | ||
uploadFileRequest.setStorageName( ""); | ||
HashMap<String,File> files = new HashMap<String,File>(); | ||
files.put( localName , new File(localName )); | ||
uploadFileRequest.setUploadFiles(files); | ||
cellsApi.uploadFile(uploadFileRequest); | ||
|
||
PostDataTransformationRequest request = new PostDataTransformationRequest(); | ||
DataTransformationRequest dataTransformationRequest = new DataTransformationRequest(); | ||
LoadData loadData = new LoadData(); | ||
LoadTo loadTo = new LoadTo(); | ||
loadTo.setBeginColumnIndex(2); | ||
|
||
|
||
loadTo.setBeginRowIndex(3); | ||
|
||
|
||
loadTo.setWorksheet("L2W"); | ||
|
||
loadData.setLoadTo(loadTo); | ||
|
||
|
||
DataQuery dataQuery = new DataQuery(); | ||
dataQuery.setName("DataQuery"); | ||
|
||
|
||
DataItem dataItem = new DataItem(); | ||
dataItem.setDataItemType("Table"); | ||
|
||
|
||
dataItem.setValue("Table1"); | ||
|
||
dataQuery.setDataItem(dataItem); | ||
|
||
|
||
DataSource dataSource = new DataSource(); | ||
dataSource.setDataSourceType("CloudFileSystem"); | ||
|
||
|
||
dataSource.setDataPath("BookTableL2W.xlsx"); | ||
|
||
dataQuery.setDataSource(dataSource); | ||
|
||
|
||
dataQuery.setDataSourceDataType("ListObject"); | ||
|
||
loadData.setDataQuery(dataQuery); | ||
|
||
dataTransformationRequest.setLoadData(loadData); | ||
|
||
|
||
ArrayList<AppliedStep> dataTransformationRequestAppliedSteps = new ArrayList<AppliedStep>(); | ||
dataTransformationRequest.setAppliedSteps(dataTransformationRequestAppliedSteps); | ||
|
||
request.setDataTransformationRequest(dataTransformationRequest); | ||
|
||
this.api.postDataTransformation(request); | ||
|
||
} catch (ApiException e) { | ||
// TODO Auto-generated catch block | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/model/query-data-source-data-type.md → docs/model/applied-operate-type.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# **queryDataSourceDataType** | ||
# **appliedOperateType** | ||
|
||
|
||
Operation type. | ||
|
||
## **Properties** | ||
|
||
|
8 changes: 3 additions & 5 deletions
8
docs/model/query-data-source.md → docs/model/applied-operate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
# **queryDataSource** | ||
# **appliedOperate** | ||
|
||
|
||
A data operation that is used to obtain a query of data. | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|DataSourceDataType|String|true|false | || | ||
|DataFile|Class|true|false | || | ||
|DataSource|String|true|false | || | ||
|AppliedOperateType|String|true|false | || | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# **appliedStep** | ||
|
||
Each data manipulation step that is performed when you get the query data. | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|StepName|String|true|false | |Data manipulation step name.| | ||
|AppliedOperate|Class|true|false | |Data manipulation name.| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# **dataQuery** | ||
|
||
Data query. | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|Name|String|true|false | |Define a name for data query. Unique identification.| | ||
|DataSourceDataType|String|true|false | |The specific data object type. When the value is File, DataItem is invalid.| | ||
|DataSource|Class|true|false | |Indicates the source of the mount data.| | ||
|FileInfo|Class|true|false | |When data souce is request files, FileInfo store the contents of the file.| | ||
|DataItem|Class|true|false | |The specific data object type and name.| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# **dataTransformationRequest** | ||
|
||
|
||
Data Transformation Request | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|FileInfo|Class|true|false | || | ||
|Transformation|Class|true|false | || | ||
|LoadData|Class|true|false | || | ||
|FileInfo|Class|true|false | |Indicates the source of the mount data.| | ||
|DataSource|Class|true|false | |Indicates the source of the mount data.| | ||
|LoadData|Class|true|false | |Indicates load data.| | ||
|AppliedSteps|Container|true|false | |Indicates applied step list. | | ||
|Region|String|true|false | || | ||
|OutFormat|String|true|false | || | ||
|OutFormat|String|true|false | |Indicates output format | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# **joinType** | ||
|
||
|
||
Join Type. | ||
|
||
## **Properties** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# **loadTo** | ||
|
||
|
||
A description of the location to which the data is mounted. | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|Worksheet|String|true|false | || | ||
|beginRowIndex|Integer|true|false | || | ||
|beginColumnIndex|Integer|true|false | || | ||
|Worksheet|String|true|false | |The worksheet name.| | ||
|beginRowIndex|Integer|true|false | |The begin row index of worksheet.| | ||
|beginColumnIndex|Integer|true|false | |The begin column index of worksheet.| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# **pivotColumn** | ||
|
||
|
||
Represents pivot column for data table. | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|PivotColumnName|String|true|false | || | ||
|ValueColumnNames|Container|true|false | || | ||
|PivotColumnName|String|true|false | |Represents pivot column name.| | ||
|ValueColumnNames|Container|true|false | |Represents column name that sets the column's value to the value of the pivot column.| | ||
|AppliedOperateType|String|true|false | || | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# **queryDataSourceType** | ||
|
||
Represents query data source type | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# **unpivotColumn** | ||
|
||
|
||
Unpivot column. | ||
|
||
## **Properties** | ||
|
||
| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | ||
| :- | :- | :- |:- | :- | :- | | ||
|UnpivotColumnNames|Container|true|false | || | ||
|ColumnMapName|String|true|false | || | ||
|ValueMapName|String|true|false | || | ||
|UnpivotColumnNames|Container|true|false | |Indicates unpivot column names.| | ||
|ColumnMapName|String|true|false | |Indicates the column is used to store the name of unpivot columns.| | ||
|ValueMapName|String|true|false | |Indicates the column is used to store the value of unpivot columns.| | ||
|AppliedOperateType|String|true|false | || | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.