V1 Xpec API to V2 Expressions API - AWS SDK for Java 2.x

V1 Xpec API to V2 Expressions API

The Expression Specification (Xspec) API available in V1 that helps create expressions to work with document-oriented data is not available in V2. V2 uses the Expression API, which works with both document-oriented data and object-to-item mapped data.

V1 V2
API name Expression Specification (Xspec) API Expression API
Works with Methods of the Document API Table class such as updateItem and scan

Both APIs of DynamoDB Enhanced Client:

  1. methods of the object-to-item mapping API

  2. methods of the Enhanced Document API for working with document-oriented data (JSON)

For both types of APIs, after you have acquired a DynamoDbTable instance:

you use expressions in DynamoDbTable methods when you create request objects. For example in the filterExpression method of the QueryEnhancedRequest.Builder

Resources Expressions information in this Java Developer Guide