久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='0JsGG'><style id='0JsGG'><dir id='0JsGG'><q id='0JsGG'></q></dir></style></legend>

      <tfoot id='0JsGG'></tfoot>
        <bdo id='0JsGG'></bdo><ul id='0JsGG'></ul>

    1. <small id='0JsGG'></small><noframes id='0JsGG'>

    2. <i id='0JsGG'><tr id='0JsGG'><dt id='0JsGG'><q id='0JsGG'><span id='0JsGG'><b id='0JsGG'><form id='0JsGG'><ins id='0JsGG'></ins><ul id='0JsGG'></ul><sub id='0JsGG'></sub></form><legend id='0JsGG'></legend><bdo id='0JsGG'><pre id='0JsGG'><center id='0JsGG'></center></pre></bdo></b><th id='0JsGG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0JsGG'><tfoot id='0JsGG'></tfoot><dl id='0JsGG'><fieldset id='0JsGG'></fieldset></dl></div>

        AWS Java SDK 中 DynamoDB v2 的遷移詳細(xì)信息?

        Migration details for DynamoDB v2 in AWS Java SDK?(AWS Java SDK 中 DynamoDB v2 的遷移詳細(xì)信息?)

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

        <tfoot id='Zl2RV'></tfoot>
          <i id='Zl2RV'><tr id='Zl2RV'><dt id='Zl2RV'><q id='Zl2RV'><span id='Zl2RV'><b id='Zl2RV'><form id='Zl2RV'><ins id='Zl2RV'></ins><ul id='Zl2RV'></ul><sub id='Zl2RV'></sub></form><legend id='Zl2RV'></legend><bdo id='Zl2RV'><pre id='Zl2RV'><center id='Zl2RV'></center></pre></bdo></b><th id='Zl2RV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Zl2RV'><tfoot id='Zl2RV'></tfoot><dl id='Zl2RV'><fieldset id='Zl2RV'></fieldset></dl></div>
          • <legend id='Zl2RV'><style id='Zl2RV'><dir id='Zl2RV'><q id='Zl2RV'></q></dir></style></legend>
              <bdo id='Zl2RV'></bdo><ul id='Zl2RV'></ul>

                  <tbody id='Zl2RV'></tbody>

                1. 本文介紹了AWS Java SDK 中 DynamoDB v2 的遷移詳細(xì)信息?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  是否有人對 AWS Java SDK 1.4.2(及更高版本)中的 DynamoDB 的新命名空間 (com.amazonaws.services.dynamodbv2) 和接口進(jìn)行了更改?根據(jù) 1.4.2 發(fā)行說明,本地二級指數(shù)的發(fā)布顯然需要進(jìn)行重大更改.

                  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.

                  有沒有人找到一份指南,詳細(xì)說明了哪些更改以及遷移現(xiàn)有代碼需要做什么?我正在嘗試決定何時最好對現(xiàn)有代碼庫進(jìn)行此更改.

                  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 的結(jié)構(gòu).此更改對代碼的主要影響是,現(xiàn)在為了調(diào)用 GetItem,您的代碼需要知道主鍵的屬性名稱,而不僅僅是主鍵值.
                  • Query 現(xiàn)在使用 Map 類型的 KeyCondition 來指定完整的查詢,而不是使用單獨的 HashKeyValueRangeKeyCondition 字段.
                  • CreateTable 輸入將屬性類型定義與主鍵定義分開(并且創(chuàng)建/更新/刪除/描述響應(yīng)與此匹配)
                  • 響應(yīng)中的已消耗容量現(xiàn)在是一個結(jié)構(gòu),而不是單個數(shù)字,并且必須在請求中提出.在批處理操作中,它以單獨的 ConsumedCapacity 結(jié)構(gòu)返回,而不是與結(jié)果一起返回.
                  • 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.如果您計劃在代碼中添加查詢本地二級索引或使用本地二級索引創(chuàng)建表的功能,您將需要為該部分代碼使用新的 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 創(chuàng)建具有本地二級索引的表,您仍然可以使用 dynamodb 命名空間中的現(xiàn)有代碼對該表執(zhí)行所有現(xiàn)有操作.例如,帶有 dynamodb 命名空間客戶端的 PutItem 將適用于使用 dynamodbv2 客戶端創(chuàng)建的表,反之亦然.

                  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.

                  這篇關(guān)于AWS Java SDK 中 DynamoDB v2 的遷移詳細(xì)信息?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關(guān)系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個隨機打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲為 int?)
                        <tbody id='e49td'></tbody>

                            <bdo id='e49td'></bdo><ul id='e49td'></ul>

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

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

                          • <i id='e49td'><tr id='e49td'><dt id='e49td'><q id='e49td'><span id='e49td'><b id='e49td'><form id='e49td'><ins id='e49td'></ins><ul id='e49td'></ul><sub id='e49td'></sub></form><legend id='e49td'></legend><bdo id='e49td'><pre id='e49td'><center id='e49td'></center></pre></bdo></b><th id='e49td'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='e49td'><tfoot id='e49td'></tfoot><dl id='e49td'><fieldset id='e49td'></fieldset></dl></div>
                            <tfoot id='e49td'></tfoot>
                          • 主站蜘蛛池模板: 久久99精品久久久久久 | 精品久久久久久久 | 亚洲精品无 | 国产yw851.c免费观看网站 | 麻豆av电影网 | 特黄色一级毛片 | 日韩手机在线看片 | a级片在线观看 | 伊人网在线播放 | 亚洲第一天堂无码专区 | 亚洲一区在线播放 | 99热精品在线观看 | 国产欧美一区二区三区国产幕精品 | 青青久久久 | 在线观看黄色电影 | 久久一区精品 | 狠狠干网站 | 日本a视频 | 综合色久 | 日韩视频在线播放 | 国产中文字幕av | 最新国产视频 | 欧美一级淫片免费视频黄 | 精品免费国产视频 | 岛国二区| 最新伦理片 | 国产精品久久久久久久久久 | 成人在线欧美 | 激情久久网 | 国产成人一区二区三区电影 | 美女三区| 国产清纯白嫩初高生在线播放视频 | 午夜视频在线免费观看 | 亚洲欧美精品在线 | 午夜天堂精品久久久久 | 黄色网址免费在线观看 | 久久久九九 | 中文字幕一区二区三 | 欧美不卡 | 精品成人av | 欧美一区二区免费视频 |