processing/src/main/java/org/apache/druid/segment/incremental/OnheapIncrementalIndex.java
/**
   * Clear out maps to allow GC
   * NOTE: This is NOT thread-safe with add... so make sure all the adding is DONE before closing
   */
Clear out maps to allow GC
NOTE: This is NOT thread-safe with add... so make sure all the adding is DONE before closing
Clear out maps to allow GC NOTE : This is NOT thread - safe with add ... so make sure all the adding is DONE before closing
@Override
  public void close()
  {
    super.close();
    closeAggregators();
    aggregators.clear();
    facts.clear();
    if (selectors != null) {
      selectors.clear();
    }
    if (combiningAggSelectors != null) {
      combiningAggSelectors.clear();
    }
  }
@ Override public void close ( ) { super . close ( ) ; closeAggregators ( ) ; aggregators . clear ( ) ; facts . clear ( ) ; if ( selectors != null ) { selectors . clear ( ) ; } if ( combiningAggSelectors != null ) { combiningAggSelectors . clear ( ) ; } }
Clear out maps to allow GC
 NOTE: This is NOT thread-safe with add... so make sure all the adding is DONE before closing
Clear out maps to allow GC NOTE : This is NOT thread - safe with add ... so make sure all the adding is DONE before closing