You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2015/07/01 11:37:29 UTC

svn commit: r1688610 - /lucene/dev/trunk/lucene/join/src/java/org/apache/lucene/search/join/BlockJoinSelector.java

Author: jpountz
Date: Wed Jul  1 09:37:29 2015
New Revision: 1688610

URL: http://svn.apache.org/r1688610
Log:
LUCENE-6554: Add missing javadocs.

Modified:
    lucene/dev/trunk/lucene/join/src/java/org/apache/lucene/search/join/BlockJoinSelector.java

Modified: lucene/dev/trunk/lucene/join/src/java/org/apache/lucene/search/join/BlockJoinSelector.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/join/src/java/org/apache/lucene/search/join/BlockJoinSelector.java?rev=1688610&r1=1688609&r2=1688610&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/join/src/java/org/apache/lucene/search/join/BlockJoinSelector.java (original)
+++ lucene/dev/trunk/lucene/join/src/java/org/apache/lucene/search/join/BlockJoinSelector.java Wed Jul  1 09:37:29 2015
@@ -33,10 +33,15 @@ import org.apache.lucene.util.BytesRef;
  *  @lucene.internal */
 public class BlockJoinSelector {
 
+  private BlockJoinSelector() {}
+
   /** Type of selection to perform. If none of the documents in the block have
    *  a value then no value will be selected. */
   public enum Type {
-    MIN, MAX;
+    /** Only consider the minimum value from the block when sorting. */
+    MIN,
+    /** Only consider the maximum value from the block when sorting. */
+    MAX;
   }
 
   /** Return a {@link Bits} instance that returns true if, and only if, any of
@@ -157,6 +162,9 @@ public class BlockJoinSelector {
     return wrap(values, DocValues.docsWithValue(sortedNumerics, parents.length()), selection, parents, children);
   }
 
+  /** Wraps the provided {@link NumericDocValues} in order to only select
+   *  one value per parent among its {@code children} using the configured
+   *  {@code selection} type. */
   public static NumericDocValues wrap(final NumericDocValues values, Bits docsWithValue, Type selection, BitSet parents, BitSet children) {
     return new NumericDocValues() {