pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <legend id='RBpFo'><style id='RBpFo'><dir id='RBpFo'><q id='RBpFo'></q></dir></style></legend>

      <tfoot id='RBpFo'></tfoot>
        <bdo id='RBpFo'></bdo><ul id='RBpFo'></ul>

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

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

        AWS DynamoDB 批量獲取請求 - iOS

        AWS DynamoDB Batch Get Request - iOS(AWS DynamoDB 批量獲取請求 - iOS)
          <tbody id='bpYsM'></tbody>
      1. <small id='bpYsM'></small><noframes id='bpYsM'>

        <tfoot id='bpYsM'></tfoot>

                <bdo id='bpYsM'></bdo><ul id='bpYsM'></ul>
                <legend id='bpYsM'><style id='bpYsM'><dir id='bpYsM'><q id='bpYsM'></q></dir></style></legend>
                <i id='bpYsM'><tr id='bpYsM'><dt id='bpYsM'><q id='bpYsM'><span id='bpYsM'><b id='bpYsM'><form id='bpYsM'><ins id='bpYsM'></ins><ul id='bpYsM'></ul><sub id='bpYsM'></sub></form><legend id='bpYsM'></legend><bdo id='bpYsM'><pre id='bpYsM'><center id='bpYsM'></center></pre></bdo></b><th id='bpYsM'></th></span></q></dt></tr></i><div class="aegswme" id='bpYsM'><tfoot id='bpYsM'></tfoot><dl id='bpYsM'><fieldset id='bpYsM'></fieldset></dl></div>
                  本文介紹了AWS DynamoDB 批量獲取請求 - iOS的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我可以對 AWS dynamoDB 中的單個表執(zhí)行簡單的 Get 請求,但是當我將其擴展為跨多個表的批處理請求時,我繼續(xù)收到錯誤

                  I can perform a simple Get request on a singular table within AWS dynamoDB however when I expand it to a Batch Request across multiple tables I continue to get a error

                  validation error detected: Value null at 'requestItems.rip.member.keys' failed to satisfy constraint
                  

                  我理解這是因為值沒有正確傳遞,但我看不出我的代碼有什么問題

                  I understand this as the values not being passed correctly but I can't see what the issue is with my code

                  //Create Request Values
                  AWSDynamoDBGetItemInput *getItem = [AWSDynamoDBGetItemInput new];
                  AWSDynamoDBAttributeValue *hashValue = [AWSDynamoDBAttributeValue new];
                  hashValue.S = @"User Test";
                  getItem.key = @{@"ripId": hashValue};
                  
                  //Create Request Values 2 
                  AWSDynamoDBGetItemInput *getItem2 = [AWSDynamoDBGetItemInput new];
                  AWSDynamoDBAttributeValue *hashValue2 = [AWSDynamoDBAttributeValue new];
                  hashValue2.S = @"User Test";
                  getItem2.key = @{@"chat": hashValue2};
                  
                  //Combine to Batch Request
                  AWSDynamoDBBatchGetItemInput * batchFetch = [AWSDynamoDBBatchGetItemInput new];
                  batchFetch.requestItems = @{ @"rip": getItem,
                                               @"chat": getItem,};
                  
                  [[dynamoDB batchGetItem:batchFetch] continueWithBlock:^id(BFTask *task) {
                      if (!task.error) {
                  
                          NSLog(@"BOY SUCCES");
                  
                      } else {
                          NSLog(@" NO BOY SUCCESS %@",task.error);
                      }
                      return nil;
                  }];
                  

                  在互聯(lián)網(wǎng)上到處搜索,但看不到使用 iOS Objective C(或 swift)的批處理請求的工作示例.

                  Searched the internet high and low but cannot see a working example of a batch request using iOS Objective C (or swift for that matter).

                  我在單個 Get 請求中測試了這兩個變量,它們都可以工作.

                  I have tested both variables on a single Get request and they both work.

                  推薦答案

                  您忘記在 AWSDynamoDBKeysAndAttributes 中環(huán)繞 AWSDynamoDBAttributeValue.這是一個來自 AWSDynamoDBTests.m:

                  You forgot to wrap around AWSDynamoDBAttributeValue in AWSDynamoDBKeysAndAttributes. Here is a simple example from AWSDynamoDBTests.m:

                  AWSDynamoDBKeysAndAttributes *keysAndAttributes = [AWSDynamoDBKeysAndAttributes new];
                  keysAndAttributes.keys = @[@{@"hashKey" : attributeValue1},
                                             @{@"hashKey" : attributeValue2}];
                  keysAndAttributes.consistentRead = @YES;
                  
                  AWSDynamoDBBatchGetItemInput *batchGetItemInput = [AWSDynamoDBBatchGetItemInput new];
                  batchGetItemInput.requestItems = @{table1Name: keysAndAttributes};
                  

                  這篇關(guān)于AWS DynamoDB 批量獲取請求 - iOS的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數(shù)據(jù)中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經(jīng)度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設(shè)備位置(iOS 和 Android)設(shè)備)
                  Easiest way of getting reverse geocoded current location from iOS(從 iOS 獲取反向地理編碼當前位置的最簡單方法)

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

                        <tbody id='UuC56'></tbody>
                      1. <tfoot id='UuC56'></tfoot>
                          <bdo id='UuC56'></bdo><ul id='UuC56'></ul>
                          <i id='UuC56'><tr id='UuC56'><dt id='UuC56'><q id='UuC56'><span id='UuC56'><b id='UuC56'><form id='UuC56'><ins id='UuC56'></ins><ul id='UuC56'></ul><sub id='UuC56'></sub></form><legend id='UuC56'></legend><bdo id='UuC56'><pre id='UuC56'><center id='UuC56'></center></pre></bdo></b><th id='UuC56'></th></span></q></dt></tr></i><div class="sgsem0i" id='UuC56'><tfoot id='UuC56'></tfoot><dl id='UuC56'><fieldset id='UuC56'></fieldset></dl></div>

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

                            主站蜘蛛池模板: 作文导航网_作文之家_满分作文_优秀作文_作文大全_作文素材_最新作文分享发布平台 | 上海办公室装修_上海店铺装修公司_厂房装潢设计_办公室装修 | 北京印刷厂_北京印刷_北京印刷公司_北京印刷厂家_北京东爵盛世印刷有限公司 | 天津货架厂_穿梭车货架_重型仓储货架_阁楼货架定制-天津钢力仓储货架生产厂家_天津钢力智能仓储装备 | 上海办公室装修,办公楼装修设计,办公空间设计,企业展厅设计_写艺装饰公司 | 致胜管家软件服务【在线免费体验】 | 空气弹簧|橡胶气囊|橡胶空气弹簧-上海松夏减震器有限公司 | 工控机-图像采集卡-PoE网卡-人工智能-工业主板-深圳朗锐智科 | 耐高温风管_耐高温软管_食品级软管_吸尘管_钢丝软管_卫生级软管_塑料波纹管-东莞市鑫翔宇软管有限公司 | 注塑模具_塑料模具_塑胶模具_范仕达【官网】_东莞模具设计与制造加工厂家 | 东莞爱加真空科技有限公司-进口真空镀膜机|真空镀膜设备|Polycold维修厂家 | 热工多功能信号校验仪-热电阻热电偶校验仿真仪-金湖虹润仪表 | 等离子表面处理机-等离子表面活化机-真空等离子清洗机-深圳市东信高科自动化设备有限公司 | 迪威娱乐|迪威娱乐客服|18183620002 | 进口试验机价格-进口生物材料试验机-西安卡夫曼测控技术有限公司 | 天津云仓-天津仓储物流-天津云仓一件代发-顺东云仓 | 济南拼接屏_山东液晶拼接屏_济南LED显示屏—维康国际官网 | 噪声治理公司-噪音治理专业隔音降噪公司 | 齿轮减速机_齿轮减速电机-VEMT蜗轮蜗杆减速机马达生产厂家瓦玛特传动瑞环机电 | 菲希尔X射线测厚仪-菲希尔库伦法测厚仪-无锡骏展仪器有限责任公司 | 东莞工厂厂房装修_无尘车间施工_钢结构工程安装-广东集景建筑装饰设计工程有限公司 | 众品地板网-地板品牌招商_地板装修设计_地板门户的首选网络媒体。 | 附着力促进剂-尼龙处理剂-PP处理剂-金属附着力处理剂-东莞市炅盛塑胶科技有限公司 | 紧急泄压人孔_防爆阻火器_阻火呼吸阀[河北宏泽石化] | 考勤系统_人事考勤管理系统_本地部署BS考勤系统_考勤软件_天时考勤管理专家 | 吸污车_吸粪车_抽粪车_电动三轮吸粪车_真空吸污车_高压清洗吸污车-远大汽车制造有限公司 | 北京遮阳网-防尘盖土网-盖土草坪-迷彩网-防尘网生产厂家-京兴科技 | 台湾Apex减速机_APEX行星减速机_台湾精锐减速机厂家代理【现货】-杭州摩森机电 | 科研ELISA试剂盒,酶联免疫检测试剂盒,昆虫_植物ELISA酶免试剂盒-上海仁捷生物科技有限公司 | 防爆大气采样器-防爆粉尘采样器-金属粉尘及其化合物采样器-首页|盐城银河科技有限公司 | 南京交通事故律师-专打交通事故的南京律师 | 组织研磨机-高通量组织研磨仪-实验室多样品组织研磨机-东方天净 传递窗_超净|洁净工作台_高效过滤器-传递窗厂家广州梓净公司 | 不锈钢螺丝 - 六角螺丝厂家 - 不锈钢紧固件 - 万千紧固件--紧固件一站式采购 | 冲锋衣滑雪服厂家-冲锋衣定制工厂-滑雪服加工厂-广东睿牛户外(S-GERT) | 钢绞线万能材料试验机-全自动恒应力两用机-混凝土恒应力压力试验机-北京科达京威科技发展有限公司 | 蜘蛛车-高空作业平台-升降机-高空作业车租赁-臂式伸缩臂叉装车-登高车出租厂家 - 普雷斯特机械设备(北京)有限公司 | 新中天检测有限公司青岛分公司-山东|菏泽|济南|潍坊|泰安防雷检测验收 | 粤丰硕水性环氧地坪漆-防静电自流平厂家-环保地坪涂料代理 | WTB5光栅尺-JIE WILL磁栅尺-B60数显表-常州中崴机电科技有限公司 | 温控器生产厂家-提供温度开关/热保护器定制与批发-惠州市华恺威电子科技有限公司 | 耐酸碱泵-自吸耐酸碱泵型号「品牌厂家」立式耐酸碱泵价格-昆山国宝过滤机有限公司首页 |