gsmiller commented on code in PR #12135:
URL: https://github.com/apache/lucene/pull/12135#discussion_r1101624944


##########
lucene/core/src/java/org/apache/lucene/index/PrefixCodedTerms.java:
##########
@@ -39,6 +43,34 @@ public class PrefixCodedTerms implements Accountable {
   private long delGen;
   private int lazyHash;
 
+  /** Create {@link PrefixCodedTerms} from a single field and array of terms. 
*/
+  public static PrefixCodedTerms ofFieldTerms(String field, BytesRef... terms) 
{
+    return ofFieldTerms(field, Arrays.asList(terms));
+  }
+
+  /** Create a {@link PrefixCodedTerms} for a single field and collection of 
terms. */
+  public static PrefixCodedTerms ofFieldTerms(String field, 
Collection<BytesRef> terms) {

Review Comment:
   I ended up keeping this in this alternate version as a way of "marking" data 
terms as already being sorted.



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to