• <small id='3tWqQ'></small><noframes id='3tWqQ'>

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

      <legend id='3tWqQ'><style id='3tWqQ'><dir id='3tWqQ'><q id='3tWqQ'></q></dir></style></legend>

        <tfoot id='3tWqQ'></tfoot>

        Java SDK 中的 AmazonDynamoDBClient 和 DynamoDB 类之间的区别?

        Difference between AmazonDynamoDBClient and DynamoDB classes in their java SDK?(Java SDK 中的 AmazonDynamoDBClient 和 DynamoDB 类之间的区别?)

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

          <tbody id='iD7VV'></tbody>

      1. <legend id='iD7VV'><style id='iD7VV'><dir id='iD7VV'><q id='iD7VV'></q></dir></style></legend>

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

                  本文介绍了Java SDK 中的 AmazonDynamoDBClient 和 DynamoDB 类之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用亚马逊的 DynamoDB java SDK,想知道 AmazonDynamoDBClient 和 DynamoDB 类.我似乎在他们身上找不到任何东西,因为文档似乎很少.有什么理由我应该使用其中一个吗?它们有什么主要的优点或缺点吗?

                  I am using Amazon's DynamoDB java SDK and want to know the difference between the AmazonDynamoDBClient and DynamoDB classes. I can't seem to find anything on them since there appears to be very little documentation. Is there any reason I should use one or the other? Are their any major benefits or drawbacks?

                  推荐答案

                  这是个好问题.看起来 DynamoDBAmazonDynamoDBClient 的包装器,提供了不同的接口.所以这可能是显而易见的,而不是您正在寻找的答案,但让我描述一下它们之间的一些差异.

                  This is a good question. It looks like DynamoDB is a wrapper to the AmazonDynamoDBClient, providing a different interface. So this may be obvious and not the answer you are looking for but let me describe some of the differences between them.

                  AmazonDynamoDBClient 中的 createTable 方法返回一个 CreateTableResult 对象,而 DynamoDB 的 createTable 方法返回返回一个 Table 对象.然后可以使用这个 Table 对象对该表执行 CRUD.Table 对象开始看起来像 DynamoDB 的通用 ORM 对象.所以它不是真正的 DynamoDB 类 vs AmazonDynamoDBClient,它更像是 DynamoDB &Table 类与 AmazonDynamoDBClient.

                  The createTable method in AmazonDynamoDBClient returns back a CreateTableResult object, whereas the DynamoDB's createTable method returns back a Table object. This Table object can then be used to do CRUD on that table. The Table object starts looking like a generic ORM object for DynamoDB. So its not really DynamoDB class vs AmazonDynamoDBClient, its more like DynamoDB & Table classes vs AmazonDynamoDBClient.

                  AmazonDynamoDBClient 明显早于 DynamoDB 类.DynamoDB 是相当新的,在 1.9.x 中出现.但这里还有另一个类值得一提,DynamoDBMapper.DynamoDBMapper 允许更多类似 ORM 的操作.允许开发人员注释他们的 JavaBean 数据模型,以便他们可以轻松地对 DynamoDB 表进行 CRUD.您可以直接使用对象,DynamoDBMapper 将对 DynamoDB 数据库进行 CRUD 工作.DynamoDBMapper 早于 DynamoDB 类.我想也许有些开发人员不想使用 DynamoDBMapper(可能不喜欢 OO 或注释?)并且需要另一种范式,但我只是假设.因此创建了 DynamoDBTable 类.使用 Table 类,您可以比 AmazonDynamoDBClient 更轻松地与表交互,但无需创建 DynamoDBMapper 所需的 JavaBean 数据模型的开销.

                  AmazonDynamoDBClient is obviously older than the DynamoDB class. DynamoDB is pretty new, coming out in 1.9.x. But there is another class here worth mentioning, DynamoDBMapper. DynamoDBMapper allows for even more ORM like operations. Allowing developers to annotate their JavaBean data-model's so that they can easily be CRUD'd against a DynamoDB table. You get to work with your objects directly and the DynamoDBMapper will do the CRUD work on the DynamoDB database. DynamoDBMapper is older than the DynamoDB class. I think maybe some developers did not want to work with the DynamoDBMapper (maybe not a fan of OO or annotations?) and there needed to be another paradigm, but I'm only hypothesizing. So the DynamoDB and Table classes were created. With the Table class you can interact with your tables more easily than the AmazonDynamoDBClient but without the overhead of creating JavaBean data-models that the DynamoDBMapper require.

                  这篇关于Java SDK 中的 AmazonDynamoDBClient 和 DynamoDB 类之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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如何按不区分大小写进行搜索)

                      <bdo id='4wCWR'></bdo><ul id='4wCWR'></ul>

                        <legend id='4wCWR'><style id='4wCWR'><dir id='4wCWR'><q id='4wCWR'></q></dir></style></legend>

                          <small id='4wCWR'></small><noframes id='4wCWR'>

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