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

<legend id='aGH2H'><style id='aGH2H'><dir id='aGH2H'><q id='aGH2H'></q></dir></style></legend>
  • <tfoot id='aGH2H'></tfoot>
  • <small id='aGH2H'></small><noframes id='aGH2H'>

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

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

        在 Java 中使用 DynamoDBMapper 更新 DynamoDB 項(xiàng)目

        Update DynamoDB item using DynamoDBMapper in Java(在 Java 中使用 DynamoDBMapper 更新 DynamoDB 項(xiàng)目)

        • <tfoot id='zC4rQ'></tfoot>

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

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

                <bdo id='zC4rQ'></bdo><ul id='zC4rQ'></ul>
                <i id='zC4rQ'><tr id='zC4rQ'><dt id='zC4rQ'><q id='zC4rQ'><span id='zC4rQ'><b id='zC4rQ'><form id='zC4rQ'><ins id='zC4rQ'></ins><ul id='zC4rQ'></ul><sub id='zC4rQ'></sub></form><legend id='zC4rQ'></legend><bdo id='zC4rQ'><pre id='zC4rQ'><center id='zC4rQ'></center></pre></bdo></b><th id='zC4rQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zC4rQ'><tfoot id='zC4rQ'></tfoot><dl id='zC4rQ'><fieldset id='zC4rQ'></fieldset></dl></div>
                  <tbody id='zC4rQ'></tbody>
                  本文介紹了在 Java 中使用 DynamoDBMapper 更新 DynamoDB 項(xiàng)目的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  如何使用 DynamoDBMapper 更新 DynamoDB 項(xiàng)目?

                  How can I update DynamoDB item using DynamoDBMapper?

                  我有多個(gè)進(jìn)程,使用 DynamoDB 表,因此,get + save 會(huì)造成不一致.我找不到使用 DynamoDBMapper 更新項(xiàng)目的方法.

                  I have multiple processes, using the DynamoDB table, thus, get + save will create inconsistency. I can not find the method to update the item using DynamoDBMapper.

                  推薦答案

                  save()方法會(huì)執(zhí)行putItemupdateItem 基于 SaveBehavior 中設(shè)置的值.請(qǐng)參考以下說明.由于這個(gè)原因,DynamoDBMapper 類中沒有更新方法.但是,有一個(gè)單獨(dú)的刪除方法可用.

                  The save() method will perform the putItem or updateItem based on the value set in SaveBehavior. Please refer the below description. There is no update method in DynamoDBMapper class because of this reason. However, there is a separate delete method available.

                  在 DynamoDB 中保存項(xiàng)目.使用的服務(wù)方法由DynamoDBMapperConfig.getSaveBehavior() 值,使用任一AmazonDynamoDB.putItem(PutItemRequest) 或AmazonDynamoDB.updateItem(UpdateItemRequest):

                  Saves an item in DynamoDB. The service method used is determined by the DynamoDBMapperConfig.getSaveBehavior() value, to use either AmazonDynamoDB.putItem(PutItemRequest) or AmazonDynamoDB.updateItem(UpdateItemRequest):

                  更新(默認(rèn)):UPDATE 不會(huì)影響保存操作和建模屬性的 null 值會(huì)將其從該項(xiàng)目中刪除動(dòng)態(tài)數(shù)據(jù)庫.由于 updateItem 請(qǐng)求的限制,當(dāng)只有鍵時(shí),UPDATE 的實(shí)現(xiàn)將發(fā)送 putItem 請(qǐng)求對(duì)象正在被保存,如果它會(huì)發(fā)送另一個(gè) updateItem 請(qǐng)求給定的鍵已經(jīng)存在于表中.

                  UPDATE (default) : UPDATE will not affect unmodeled attributes on a save operation and a null value for the modeled attribute will remove it from that item in DynamoDB. Because of the limitation of updateItem request, the implementation of UPDATE will send a putItem request when a key-only object is being saved, and it will send another updateItem request if the given key(s) already exists in the table.

                  UPDATE_SKIP_NULL_ATTRIBUTES : 與 UPDATE 類似,只是它忽略任何空值屬性,并且不會(huì)將它們從該項(xiàng)目中刪除動(dòng)態(tài)數(shù)據(jù)庫.它還保證只發(fā)送一個(gè) updateItem請(qǐng)求,無論對(duì)象是否僅鍵.

                  UPDATE_SKIP_NULL_ATTRIBUTES : Similar to UPDATE except that it ignores any null value attribute(s) and will NOT remove them from that item in DynamoDB. It also guarantees to send only one single updateItem request, no matter the object is key-only or not.

                  CLOBBER: CLOBBER將清除并替換所有屬性,包括未建模的屬性,(刪除并重新創(chuàng)建)保存.版本化的字段約束也將被忽視.saveExpression 參數(shù)中指定的任何選項(xiàng)由于版本化屬性,將覆蓋在任何約束上.

                  CLOBBER : CLOBBER will clear and replace all attributes, included unmodeled ones, (delete and recreate) on save. Versioned field constraints will also be disregarded. Any options specified in the saveExpression parameter will be overlaid on any constraints due to versioned attributes.

                  用法示例:-

                  DynamoDBMapperConfig dynamoDBMapperConfig = new DynamoDBMapperConfig(SaveBehavior.UPDATE);
                  

                  更新 DynamoDBMapperConfig (aws sdk 1.11.473) 構(gòu)造函數(shù)似乎已被棄用,應(yīng)該改用構(gòu)建器:

                  UPDATE DynamoDBMapperConfig (aws sdk 1.11.473) constructor seems to be deprecated and the builder should be used instead:

                  DynamoDBMapperConfig dynamoDBMapperConfig = new DynamoDBMapperConfig.Builder()
                    .withConsistentReads(DynamoDBMapperConfig.ConsistentReads.CONSISTENT)
                    .withSaveBehavior(DynamoDBMapperConfig.SaveBehavior.UPDATE)
                    .build();
                  dynamoDBMapper.save(yourObject, dynamoDBMapperConfig);
                  

                  這篇關(guān)于在 Java 中使用 DynamoDBMapper 更新 DynamoDB 項(xiàng)目的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測(cè) 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)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 int?)
                  <i id='rYpZo'><tr id='rYpZo'><dt id='rYpZo'><q id='rYpZo'><span id='rYpZo'><b id='rYpZo'><form id='rYpZo'><ins id='rYpZo'></ins><ul id='rYpZo'></ul><sub id='rYpZo'></sub></form><legend id='rYpZo'></legend><bdo id='rYpZo'><pre id='rYpZo'><center id='rYpZo'></center></pre></bdo></b><th id='rYpZo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rYpZo'><tfoot id='rYpZo'></tfoot><dl id='rYpZo'><fieldset id='rYpZo'></fieldset></dl></div>
                    • <legend id='rYpZo'><style id='rYpZo'><dir id='rYpZo'><q id='rYpZo'></q></dir></style></legend>
                        <tbody id='rYpZo'></tbody>
                        • <bdo id='rYpZo'></bdo><ul id='rYpZo'></ul>

                          1. <small id='rYpZo'></small><noframes id='rYpZo'>

                            <tfoot id='rYpZo'></tfoot>
                            主站蜘蛛池模板: 91影院在线观看 | 欧美在线观看黄色 | 成人免费视频一区 | 神马久久av | 我要看免费一级毛片 | av激情在线| 欧美v日韩| 亚洲国产精品va在线看黑人 | 日韩视频成人 | 波多野结衣二区 | 日韩精品一区二区三区中文在线 | 欧美日韩国产免费 | 久久久久国产一区二区三区 | 视频一区在线观看 | 在线成人| avtt国产| 中文字幕视频在线 | 精品欧美一区二区精品久久久 | 97色免费视频 | 欧美极品视频 | 在线观看免费av网 | 婷婷色在线播放 | 中文字幕一级 | 91精品国产色综合久久不卡98 | 久久中文字幕一区 | 九九福利| 在线免费观看视频黄 | 日本公妇乱淫xxxⅹ 国产在线不卡 | 国产麻豆乱码精品一区二区三区 | 影音先锋中文在线 | 福利久久 | 久久www免费视频 | 伦理午夜电影免费观看 | 三极网站 | 日韩欧美国产精品一区二区三区 | 亚洲欧洲精品一区 | av网址在线 | 国产资源在线视频 | 国产在线精品一区二区 | 偷拍亚洲色图 | 国产精品久久 |