Use Tablestore SDK for Java to delete a Lastpoint index without deleting the source time series table or its data.
Prerequisites
Install the Tablestore SDK for Java and initialize a time series client. Lastpoint indexes require version 5.17.1 or later. We recommend that you use the latest version.
Description
Call deleteTimeseriesLastpointIndex to delete a Lastpoint index. Deleting the index does not delete the source time series table or existing time series data.
public DeleteTimeseriesLastpointIndexResponse deleteTimeseriesLastpointIndex(DeleteTimeseriesLastpointIndexRequest request) throws TableStoreException, ClientException
Before you delete a Lastpoint index, make sure that no application uses it. A deleted index cannot be recovered.
The following example deletes example_lastpoint_index from example_timeseries_table.
TimeseriesClient timeseriesClient = client.asTimeseriesClient();
DeleteTimeseriesLastpointIndexRequest request =
new DeleteTimeseriesLastpointIndexRequest(
"example_timeseries_table",
"example_lastpoint_index");
timeseriesClient.deleteTimeseriesLastpointIndex(request);
Parameters
DeleteTimeseriesLastpointIndexRequest contains the following parameters.
|
Name |
Type |
Description |
|
timeseriesTableName (required) |
|
The time series table name. |
|
lastpointIndexName (required) |
|
The Lastpoint index name to delete. |