lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christine Poerschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6646) support SortingMergePolicy-free use of EarlyTerminatingSortingCollector
Date Wed, 01 Jul 2015 14:41:04 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14610392#comment-14610392
] 

Christine Poerschke commented on LUCENE-6646:
---------------------------------------------

Regarding {{SortingMergePolicy}}'s existing non-static {{isSorted}} method, should we keep
it around or could the equivalent static method be its replacement? Code fragment from pull
request is this:
 
{code}
  /** Returns {@code true} if the given {@code reader} is sorted by the
   *  {@code sort} order of this {@link SortingMergePolicy}. */
  public boolean isSorted(LeafReader reader) {
    return isSorted(reader, sort);
  }
  
  /** Returns {@code true} if the given {@code reader} is sorted by the
   *  {@code sort} given. */
  public static boolean isSorted(LeafReader reader, Sort sort) {
    String description = getSortDescription(reader);
    if (description != null && description.equals(sort.toString())) {
      return true;
    }
    return false;
  }
{code}

> support SortingMergePolicy-free use of EarlyTerminatingSortingCollector
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-6646
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6646
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Christine Poerschke
>            Priority: Minor
>
> motivation and summary of proposed changes to follow via github pull request



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message