<legend id='U7nja'><style id='U7nja'><dir id='U7nja'><q id='U7nja'></q></dir></style></legend>

        <i id='U7nja'><tr id='U7nja'><dt id='U7nja'><q id='U7nja'><span id='U7nja'><b id='U7nja'><form id='U7nja'><ins id='U7nja'></ins><ul id='U7nja'></ul><sub id='U7nja'></sub></form><legend id='U7nja'></legend><bdo id='U7nja'><pre id='U7nja'><center id='U7nja'></center></pre></bdo></b><th id='U7nja'></th></span></q></dt></tr></i><div id='U7nja'><tfoot id='U7nja'></tfoot><dl id='U7nja'><fieldset id='U7nja'></fieldset></dl></div>
          <bdo id='U7nja'></bdo><ul id='U7nja'></ul>

        <tfoot id='U7nja'></tfoot>
      1. <small id='U7nja'></small><noframes id='U7nja'>

      2. AWS Java SDK 中 DynamoDB v2 的迁移详细信息?

        Migration details for DynamoDB v2 in AWS Java SDK?(AWS Java SDK 中 DynamoDB v2 的迁移详细信息?)
      3. <small id='GrNCl'></small><noframes id='GrNCl'>

          <bdo id='GrNCl'></bdo><ul id='GrNCl'></ul>
            <tbody id='GrNCl'></tbody>
          <tfoot id='GrNCl'></tfoot>

          <i id='GrNCl'><tr id='GrNCl'><dt id='GrNCl'><q id='GrNCl'><span id='GrNCl'><b id='GrNCl'><form id='GrNCl'><ins id='GrNCl'></ins><ul id='GrNCl'></ul><sub id='GrNCl'></sub></form><legend id='GrNCl'></legend><bdo id='GrNCl'><pre id='GrNCl'><center id='GrNCl'></center></pre></bdo></b><th id='GrNCl'></th></span></q></dt></tr></i><div id='GrNCl'><tfoot id='GrNCl'></tfoot><dl id='GrNCl'><fieldset id='GrNCl'></fieldset></dl></div>

                <legend id='GrNCl'><style id='GrNCl'><dir id='GrNCl'><q id='GrNCl'></q></dir></style></legend>

                • 本文介绍了AWS Java SDK 中 DynamoDB v2 的迁移详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否有人对 AWS Java SDK 1.4.2(及更高版本)中的 DynamoDB 的新命名空间 (com.amazonaws.services.dynamodbv2) 和接口进行了更改?根据 1.4.2 发行说明,本地二级指数的发布显然需要进行重大更改.

                  Has anyone made the change to the new namespaces (com.amazonaws.services.dynamodbv2) and interfaces for DynamoDB in the AWS Java SDK 1.4.2 (and later)? The release of Local Secondary Indices apparently necessitated breaking changes as per the 1.4.2 release notes.

                  有没有人找到一份指南,详细说明了哪些更改以及迁移现有代码需要做什么?我正在尝试决定何时最好对现有代码库进行此更改.

                  Has anyone found a guide detailing what changed and what needs to happen to migrate existing code? I am trying to decide when is best to make this change for an existing code base.

                  推荐答案

                  DynamoDB 的新 dynamodbv2 命名空间引入了以下不兼容的更改(因为它们不是简单的添加,需要更改代码才能切换到新的命名空间):

                  The new dynamodbv2 namespace of DynamoDB introduces the following incompatible changes (in that they are not simply additive, and require code changes to switch to the new namespace):

                  • HashKeyElementRangeKeyElement 被替换为 Map.这包括名为 ExclusiveStartKeyLastEvaluatedKeyKey 的结构.此更改对代码的主要影响是,现在为了调用 GetItem,您的代码需要知道主键的属性名称,而不仅仅是主键值.
                  • Query 现在使用 Map 类型的 KeyCondition 来指定完整的查询,而不是使用单独的 HashKeyValueRangeKeyCondition 字段.
                  • CreateTable 输入将属性类型定义与主键定义分开(并且创建/更新/删除/描述响应与此匹配)
                  • 响应中的已消耗容量现在是一个结构,而不是单个数字,并且必须在请求中提出.在批处理操作中,它以单独的 ConsumedCapacity 结构返回,而不是与结果一起返回.
                  • HashKeyElement and RangeKeyElement are replaced with a Map<String, AttributeValue>. This includes the structures named ExclusiveStartKey, LastEvaluatedKey, and Key. The main impact on the code with this change is that now in order to call GetItem, for example, your code needs to know the attribute names of the primary keys, and not just the primary key values.
                  • Query now uses a KeyCondition of type Map<String, Condition> to specify the full query, instead of having separate HashKeyValue and RangeKeyCondition fields.
                  • CreateTable input separates the attribute type definitions from the primary key definitions (and create/update/delete/describe responses match this)
                  • Consumed Capacity in responses is now a structure instead of a single number, and must be asked for in the request. In Batch operations, this is returned in a separate ConsumedCapacity structure, instead of alongside the results.

                  如果需要,可以逐步将您的代码迁移到新的 Java API.如果您计划在代码中添加查询本地二级索引或使用本地二级索引创建表的功能,您将需要为该部分代码使用新的 API.

                  It is possible to migrate your code to the new Java API incrementally, if desired. If you plan to add functionality to your code that queries Local Secondary Indexes, or creates tables with local secondary indexes, you will need to use the new API for that part of your code.

                  如果您使用新 API 创建具有本地二级索引的表,您仍然可以使用 dynamodb 命名空间中的现有代码对该表执行所有现有操作.例如,带有 dynamodb 命名空间客户端的 PutItem 将适用于使用 dynamodbv2 客户端创建的表,反之亦然.

                  If you create a table with Local Secondary Indexes with the new API, you can still use your existing code in the dynamodb namespace to perform all of the existing operations on that table. As an example, PutItem with the dynamodb namespace client will work against tables created using the dynamodbv2 client, as well as the other way around.

                  这篇关于AWS Java SDK 中 DynamoDB v2 的迁移详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)

                  <small id='m93MA'></small><noframes id='m93MA'>

                    <tbody id='m93MA'></tbody>
                    <bdo id='m93MA'></bdo><ul id='m93MA'></ul>
                      <legend id='m93MA'><style id='m93MA'><dir id='m93MA'><q id='m93MA'></q></dir></style></legend>

                        1. <tfoot id='m93MA'></tfoot>
                          • <i id='m93MA'><tr id='m93MA'><dt id='m93MA'><q id='m93MA'><span id='m93MA'><b id='m93MA'><form id='m93MA'><ins id='m93MA'></ins><ul id='m93MA'></ul><sub id='m93MA'></sub></form><legend id='m93MA'></legend><bdo id='m93MA'><pre id='m93MA'><center id='m93MA'></center></pre></bdo></b><th id='m93MA'></th></span></q></dt></tr></i><div id='m93MA'><tfoot id='m93MA'></tfoot><dl id='m93MA'><fieldset id='m93MA'></fieldset></dl></div>