You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/01/03 20:31:55 UTC

[GitHub] [accumulo] keith-turner commented on a change in pull request #1426: Add iterators to Apilyzer and document SPI

keith-turner commented on a change in pull request #1426: Add iterators to Apilyzer and document SPI
URL: https://github.com/apache/accumulo/pull/1426#discussion_r362951730
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/iterators/IteratorEnvironment.java
 ##########
 @@ -155,11 +156,28 @@ default boolean isUserCompaction() {
    * </pre>
    *
    * @since 2.0.0
+   * @deprecated since 2.1.0. This method was using a non public API type. Use
+   *             {@link #getPluginEnv()} instead because it has better stability guarantees.
    */
+  @Deprecated
   default ServiceEnvironment getServiceEnv() {
     throw new UnsupportedOperationException();
   }
 
+  /**
+   * Returns an object containing information about the server where this iterator was run. To
+   * obtain a table configuration, use the following methods:
+   *
+   * <pre>
+   * iterEnv.getServiceEnv().getConfiguration(env.getTableId())
 
 Review comment:
   ```suggestion
      * iterEnv.getPluginEnv().getConfiguration(env.getTableId())
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services