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

    <tfoot id='fGFhX'></tfoot>

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

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

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

        LDAP:如何返回超过 1000 个结果(java)

        LDAP: How to return more than 1000 results (java)(LDAP:如何返回超过 1000 个结果(java))
        <tfoot id='KKR0N'></tfoot>
          <tbody id='KKR0N'></tbody>

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

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

              <legend id='KKR0N'><style id='KKR0N'><dir id='KKR0N'><q id='KKR0N'></q></dir></style></legend>
              • <i id='KKR0N'><tr id='KKR0N'><dt id='KKR0N'><q id='KKR0N'><span id='KKR0N'><b id='KKR0N'><form id='KKR0N'><ins id='KKR0N'></ins><ul id='KKR0N'></ul><sub id='KKR0N'></sub></form><legend id='KKR0N'></legend><bdo id='KKR0N'><pre id='KKR0N'><center id='KKR0N'></center></pre></bdo></b><th id='KKR0N'></th></span></q></dt></tr></i><div id='KKR0N'><tfoot id='KKR0N'></tfoot><dl id='KKR0N'><fieldset id='KKR0N'></fieldset></dl></div>
                • 本文介绍了LDAP:如何返回超过 1000 个结果(java)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用来自此站点的 LDAP SDK:https://www.unboundid.com/products/ldap-sdk/ .我想做一个返回很多条目的搜索操作.

                  I am using the LDAP SDK from this site: https://www.unboundid.com/products/ldap-sdk/ . I would like to make a search operation which returns a lot of entries.

                  根据常见问题解答网站,(https://www.unboundid.com/products/ldap-sdk/docs/ldapsdk-faq.php#search )我必须使用 SearchResultListener 实现.

                  According to the FAQ's site, ( https://www.unboundid.com/products/ldap-sdk/docs/ldapsdk-faq.php#search ) I have to use a SearchResultListener implementation.

                  这就是我所做的:

                   public class UpdateThread extends Thread implements SearchResultListener {
                   ...
                   // create request
                   final SearchRequest request = new SearchRequest(this, instance.getBaseDN(),SearchScope.SUB, filter);
                   // Setting size limit of results.
                   request.setSizeLimit(2000);
                  
                   ...
                  
                   // Get every result one by one.
                   @Override
                  public void searchEntryReturned(SearchResultEntry arg0) {
                      System.out.println("entry "+arg0.getDN());
                  
                  }
                  

                  问题是searchEntryReturned"最多返回 1000 个结果.即使我将大小限制设置为2000".

                  The problem is that "searchEntryReturned" returns a maximum of 1000 results. Even if I set the size limit to "2000".

                  推荐答案

                  虽然几乎可以肯定服务器强制执行 1000 个条目的大小限制,但有可能通过分多个部分发出请求来解决这个问题.

                  Although it's almost certainly the case that the server is enforcing the size limit of 1000 entries, there are potentially ways to get around that by issuing the request in multiple parts.

                  如果服务器支持使用简单的分页结果控件(如 RFC 2696 中定义并在 LDAP SDK 中支持,根据 https://docs.ldap.com/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/controls/SimplePagedResultsControl.html),那么您可以使用它来遍历包含指定数量条目的页面"中的结果.

                  If the server supports the use of the simple paged results control (as defined in RFC 2696 and supported in the LDAP SDK as per https://docs.ldap.com/ldap-sdk/docs/javadoc/com/unboundid/ldap/sdk/controls/SimplePagedResultsControl.html), then you can use it to iterate through the results in "pages" containing a specified number of entries.

                  或者,虚拟列表视图 (VLV) 请求控制 (https://www.unboundid.com/products/ldap-sdk/docs/javadoc/index.html?com/unboundid/ldap/sdk/controls/VirtualListViewRequestControl.html) 可以使用,但我可能只建议如果服务器不支持简单的分页结果控件,因为 VLV 请求控件还要求对结果进行排序,并且这可能需要特殊配置服务器或一些非常昂贵的处理,以便能够为请求提供服务.

                  Alternately, the virtual list view (VLV) request control (https://www.unboundid.com/products/ldap-sdk/docs/javadoc/index.html?com/unboundid/ldap/sdk/controls/VirtualListViewRequestControl.html) could be used, but I would probably only recommend that if the server doesn't support the simple paged results control because the VLV request control also requires that the results be sorted, and that likely either requires special configuration in the server or some pretty expensive processing in order to be able to service the request.

                  这篇关于LDAP:如何返回超过 1000 个结果(java)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

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

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

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

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