API table - RapturePlatform/Rapture GitHub Wiki
For manipulating Rapture tables. Tables are data warehouses in Rapture that are used primarily internally to manage things such as indexes on other data. The terms index and table are used interchangeably in Rapture.
This api is deprecated: "The Table api is deprecated, use the index api instead" ## createTableHttpTableApi tableApi = new HttpTableApi(loginApi);
RaptureTableConfig retVal = tableApi.createTable(indexURI, config);
retVal = baseAPI.doTable_CreateTable(indexURI, config);
Entitlement: /admin/index
Creates a RaptureTableConfig object with the specified configuration and stores it in the config repo.
Parameter | Type | Description |
---|---|---|
indexURI | String | |
config | String |
Type | Description |
---|---|
RaptureTableConfig |
Holds the config info for a Rapture table, as described in the table API.
Field | Type |
---|---|
name | String |
config | String |
authority | String |
HttpTableApi tableApi = new HttpTableApi(loginApi);
List<RaptureTableConfig> retVal = tableApi.getTablesForAuthority(authority);
retVal = baseAPI.doTable_GetTablesForAuthority(authority);
Entitlement: /admin/index
Gets the configs for all tables in a given authority.
Parameter | Type | Description |
---|---|---|
authority | String |
Type | Description |
---|---|
List |
HttpTableApi tableApi = new HttpTableApi(loginApi);
RaptureTableConfig retVal = tableApi.getTable(indexURI);
retVal = baseAPI.doTable_GetTable(indexURI);
Entitlement: /admin/index
Gets the config for a specified table.
Parameter | Type | Description |
---|---|---|
indexURI | String |
Type | Description |
---|---|
RaptureTableConfig |
Holds the config info for a Rapture table, as described in the table API.
Field | Type |
---|---|
name | String |
config | String |
authority | String |
HttpTableApi tableApi = new HttpTableApi(loginApi);
boolean retVal = tableApi.deleteTable(indexURI);
retVal = baseAPI.doTable_DeleteTable(indexURI);
Entitlement: /admin/index
Deletes a RaptureTableConfig from the config repo.
Parameter | Type | Description |
---|---|---|
indexURI | String |
Type | Description |
---|---|
boolean |
HttpTableApi tableApi = new HttpTableApi(loginApi);
List<TableRecord> retVal = tableApi.queryTable(indexURI, query);
retVal = baseAPI.doTable_QueryTable(indexURI, query);
Entitlement: /admin/index
Runs a TableQuery on a given table/index URI.
Parameter | Type | Description |
---|---|---|
indexURI | String | |
query | TableQuery |
Type | Description |
---|---|
List |
Describes a query made against a table.
Field | Type |
---|---|
fieldTests | List(TableSelect) |
fieldReturns | List(String) |
sortFields | List(TableColumnSort) |
skip | int |
limit | int |