processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/StreamingMergeSortedGrouper.java
/**
       * Calculate the number of remaining items in the array.  Must be called only when
       * {@link StreamingMergeSortedGrouper#finished} is true.
       *
       * @return the number of remaining items
       */
Calculate the number of remaining items in the array.  Must be called only when
StreamingMergeSortedGrouper#finished is true.

@return the number of remaining items
Calculate the number of remaining items in the array . Must be called only when StreamingMergeSortedGrouper#finished is true . @return the number of remaining items
private int remaining()
      {
        if (curWriteIndex >= nextReadIndex) {
          return curWriteIndex - nextReadIndex;
        } else {
          return (maxNumSlots - nextReadIndex) + curWriteIndex;
        }
      }
private int remaining ( ) { if ( curWriteIndex >= nextReadIndex ) { return curWriteIndex - nextReadIndex ; } else { return ( maxNumSlots - nextReadIndex ) + curWriteIndex ; } }
Calculate the number of remaining items in the array.
Calculate the number of remaining items in the array .