This adapter enables to connect to Google Cloud BigTable, a highly available NoSQL data store that offloads the database administration.
Properties
|
|
Defines the operation executed by the Adapter. Possible Values:
|
Parameters
|
|
Main adapter class (do not change!) Possible values: de.softproject.integration.adapter.google.cloud.bigtable.storage.GoogleCloudBigtableAdapter: Main class (default) |
|
|
Path to the JSON file that contains the service account key to authenticate to the Google Cloud Storage. Possible values:
|
|
|
ID of the project. Possible values:
|
|
|
ID of the instance Possible values :
Please follow this link for more information on how to create an instance in Google BigTable. |
|
|
Name of the table. Required parameter for all operations. |
|
|
Family name of the columns. Group columns in a unique Column family name. |
|
|
Row key of the row. Row identifier to put or search rows. |
|
|
Name of the column. Used to delete a specific column in a row with |
|
|
Specify a single row to start scanning. Possible values: |
|
|
Specify a single row to stop scanning, this row will not be shown in the scan results. Possible values: |
|
|
Modify scanner caching for just this scan, If caching is not set, the caching value of the hosting table is used. Possible values: Integer |
|
|
Specify a maximum result size Possible values: Integer When both parameters,
|
|
|
Retrieve columns with a specific timestamp only. Possible values: Integer |
|
|
Limit the number of versions of each column to be returned Possible values: Integer |
|
|
Explicitly disable server-side block caching for this scan Possible values: |
Status values
|
|
The operation was executed successfully. |
|
|
The operation is not complete, but no error occurred.
|
|
|
An error occurred during the operation's execution. |
Input
-
For
PutRowoperation, the adapter expects XML with this structure:XML<ListRows> <row rowKey="IT employee"> <rowAttribute1 columnName="ID" value="00001" /> <rowAttribute2 columnName="Address" value="Karlsruhe" /> <rowAttribute3 columnName="Name" value="Paolo" /> <rowAttribute4 columnName="Surname" value="Green" /> <rowAttribute5 columnName="Phone" value="552-968-369" /> <rowAttribute6 columnName="Bonus" value="Yes" /> <rowAttribute7 columnName="Profession" value="System Administrator" /> </row> </ListRows>
Element names are not restricted, but attributes
columnName,valueandrowKeyare required.
Output
Depending on the executed operation, the adapter returns different kinds of documents.
-
GetRowoperation:XML<Result> <Row rowKey="DEV employee"> <RowColumn ColumnName="Address" value="Ettlingen" /> <RowColumn ColumnName="Frameworks" value="Java-Hibernate" /> <RowColumn ColumnName="ID" value="00003" /> <RowColumn ColumnName="Name" value="Lorena" /> </Row> </Result>
-
Scanoperation:XML<Column FamilyName="FamilyNamePrimary"> <Row rowKey="CLean employee"> <Attribute ColumnName="Address" value="Ettlingen" timeStamp="1544603282081" /> <Attribute ColumnName="ID" value="00005" timeStamp="1544603282081" /> </Row> <Row rowKey="DEV employee"> <Attribute ColumnName="Address" value="Ettlingen" timeStamp="1544603280340" /> <Attribute ColumnName="Frameworks" value="Java-Hibernate" timeStamp="1544603280340" /> <Attribute ColumnName="ID" value="00003" timeStamp="1544603280340" /> <Attribute ColumnName="Name" value="Lorena" timeStamp="1544603280340" /> </Row> <Row rowKey="HR employee"> <Attribute ColumnName="ID" value="00002" timeStamp="1544603278048" /> <Attribute ColumnName="Name" value="Francis Ernesto" timeStamp="1544603278048" /> <Attribute ColumnName="Surname" value="Underwood" timeStamp="1544603278048" /> </Row> <Row rowKey="IT employee"> <Attribute ColumnName="Address" value="Karlsruhe" timeStamp="1544603276625" /> <Attribute ColumnName="Bonus" value="Yes" timeStamp="1544603276625" /> <Attribute ColumnName="ID" value="00001" timeStamp="1544603276625" /> <Attribute ColumnName="Name" value="Paolo" timeStamp="1544603276625" /> <Attribute ColumnName="Phone" value="552-968-369" timeStamp="1544603276625" /> <Attribute ColumnName="Profession" value="System Administrator" timeStamp="1544603276625" /> <Attribute ColumnName="Surname" value="Green" timeStamp="1544603276625" /> </Row> <Row rowKey="Marketing employee"> <Attribute ColumnName="ID" value="00004" timeStamp="1544603281175" /> <Attribute ColumnName="Name" value="Petra" timeStamp="1544603281175" /> </Row> <Row rowKey="Security employee"> <Attribute ColumnName="Address" value="Ettlingen/Build1" timeStamp="1544603283155" /> <Attribute ColumnName="ID" value="00006" timeStamp="1544603283155" /> <Attribute ColumnName="Name" value="Robert" timeStamp="1544603283155" /> <Attribute ColumnName="Permisions" value="Day-Night" timeStamp="1544603283155" /> </Row> </Column>
-
ListTableoperation:XML<?xml version="1.0" encoding="UTF-8" ?> <Result> <ListTables> <Table name="TestTable" /> </ListTables> </Result>