Skip to content

Commit

Permalink
Added extra javadocs on getKeys and nonEmpty in BlockHash (#118357)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancea authored Dec 11, 2024
1 parent e3bddd0 commit 1265f3e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public abstract class BlockHash implements Releasable, SeenGroupIds {

/**
* Returns a {@link Block} that contains all the keys that are inserted by {@link #add}.
* <p>
* Keys must be in the same order as the IDs returned by {@link #nonEmpty()}.
* </p>
*/
public abstract Block[] getKeys();

Expand All @@ -100,6 +103,9 @@ public abstract class BlockHash implements Releasable, SeenGroupIds {
* {@link BooleanBlockHash} does this by always assigning {@code false} to {@code 0}
* and {@code true} to {@code 1}. It's only <strong>after</strong> collection when we
* know if there actually were any {@code true} or {@code false} values received.
* <p>
* IDs must be in the same order as the keys returned by {@link #getKeys()}.
* </p>
*/
public abstract IntVector nonEmpty();

Expand Down

0 comments on commit 1265f3e

Please sign in to comment.