This topic describes the operations supported by Tablestore SDK for Node.js when the Wide Column model is used.
Features
Before you use the features supported by Tablestore SDK for Node.js, you must initialize a client. The following table describes the features supported by Tablestore SDK for Node.js.
Feature | Operation | Description |
You can create a data table to store data. You can configure an auto-increment primary key column when you create a data table. | ||
You can update the configurations of a data table. | ||
You can view the names of all data tables in an instance. | ||
You can query the configurations of a data table. | ||
You can delete a data table. | ||
You can write data to a data table. | ||
You can read data from a data table. | ||
You can delete data from a data table. | ||
You can use a filter to filter query results on the server and then return the filtered results. Only the rows that meet the filter conditions are returned. | ||
You can update data in a table only when the specified conditions are met. Otherwise, the update fails and an error is returned. | ||
The atomic counter feature allows you to specify a column as an atomic counter and perform atomic counter operations on the column. | ||
After you enable local transaction for a data table, you can create a local transaction based on a partition key value. | ||
You can create a search index for a data table. | ||
You can query search indexes that are created for a table. | ||
You can update the time to live (TTL) of a search index. | ||
You can query the description of a search index, including the information about the fields in the search index and configurations of the search index. | ||
You can delete a search index. | ||
Basic query types include match all query, term query, terms query, prefix query, range query, wildcard query, exists query, collapse (distinct), geo query, and nested query. | ||
A Boolean query retrieves data from a data table based on a combination of subqueries. Tablestore returns the rows that match the subqueries. | ||
When you query data by using search indexes, you can specify a sorting method to sort the returned data. When a large number of rows are returned, you can use offset-based pagination or token-based pagination to quickly locate the data you want. | ||
You can perform aggregation operations to obtain the minimum, maximum, sum, and average values, and the count and distinct count of rows. You can also perform aggregation operations to group results by field value, range, geographical location, or filter. You can perform multiple aggregation operations for complex queries. | ||
Tablestore provides match query and match phrase query to implement full-text search. When you perform a match query or match phrase query, data is matched based on tokens. You can use the highlight features to highlight the query string. | ||
You can use the k-nearest neighbor (KNN) vector query feature to perform an approximate nearest neighbor search based on vectors. This way, you can find data items that have the highest similarity to the vector that you want to query in a large-scale dataset. | ||
If you do not have requirements on the order of query results, you can use the parallel scan feature to obtain query results in an efficient manner. | ||
You can create a secondary index for a data table. | ||
You can query data in a secondary index by reading a single row of data or reading data whose primary key values are within a specific range. If the required attribute columns are included in the secondary index, data can be directly read from the secondary index. Otherwise, data must be read from the data table. | ||
You can delete a secondary index that is created for a data table. | ||
You can create a mapping table for an existing table or index. | ||
You can add or remove attribute columns in an existing mapping table. | ||
You can delete one or more mapping tables. | ||
You can query the names of mapping tables in the current database. | ||
You can query the description of a table, such as field names and field types. | ||
You can query the index description of a table. | ||
You can query data in a table. |
References
For more information about how to handle Tablestore errors, see Error handling.