blob: fcdfa56a344747b0e0fae43d9a7b53614e897bf4 [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class EarlyTerminatingSortingCollector
| Apache Lucene.NET 4.8.0-beta00011 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class EarlyTerminatingSortingCollector
| Apache Lucene.NET 4.8.0-beta00011 Documentation ">
<meta name="generator" content="docfx 2.56.0.0">
<link rel="shortcut icon" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/favicon.ico">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.css">
<link rel="stylesheet" href="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="misc/toc.html">
<meta property="docfx:rel" content="https://lucenenet.apache.org/docs/4.8.0-beta00009/">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img id="logo" class="svg" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search">
<ul class="level0 breadcrumb">
<li>
<a href="https://lucenenet.apache.org/docs/4.8.0-beta00009/">API</a>
<span id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</span>
</li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector">
<h1 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector" class="text-break">Class EarlyTerminatingSortingCollector
</h1>
<div class="markdown level0 summary"><p>A <span class="xref">Lucene.Net.Search.ICollector</span> that early terminates collection of documents on a
per-segment basis, if the segment was sorted according to the given
<span class="xref">Lucene.Net.Search.Sort</span>.</p>
<p>
<strong>NOTE:</strong> the <span class="xref">Lucene.Net.Search.ICollector</span> detects sorted segments according to
<a class="xref" href="Lucene.Net.Index.Sorter.SortingMergePolicy.html">SortingMergePolicy</a>, so it&apos;s best used in conjunction with it. Also,
it collects up to a specified <a class="xref" href="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.html#Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_numDocsToCollect">m_numDocsToCollect</a> from each segment,
and therefore is mostly suitable for use in conjunction with collectors such as
<a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.TopDocsCollector-1.html">TopDocsCollector&lt;T&gt;</a>, and not e.g. <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.TotalHitCountCollector.html">TotalHitCountCollector</a>.
</p>
<p>
<strong>NOTE</strong>: If you wrap a <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.TopDocsCollector-1.html">TopDocsCollector&lt;T&gt;</a> that sorts in the same
order as the index order, the returned <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.TopDocsCollector-1.html#Lucene_Net_Search_TopDocsCollector_1_GetTopDocs">GetTopDocs()</a>
will be correct. However the total of <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.TopDocsCollector-1.html#Lucene_Net_Search_TopDocsCollector_1_TotalHits">TotalHits</a>
hit count will be underestimated since not all matching documents will have
been collected.
</p>
<p>
<strong>NOTE</strong>: This <span class="xref">Lucene.Net.Search.ICollector</span> uses <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.Sort.html#Lucene_Net_Search_Sort_ToString">ToString()</a> to detect
whether a segment was sorted with the same <span class="xref">Lucene.Net.Search.Sort</span>. This has
two implications:
<ul>
<li>if a custom comparer is not implemented correctly and returns
different identifiers for equivalent instances, this collector will not
detect sorted segments,</li>
<li>if you suddenly change the <span class="xref">Lucene.Net.Index.IndexWriter</span>&apos;s
<a class="xref" href="Lucene.Net.Index.Sorter.SortingMergePolicy.html">SortingMergePolicy</a> to sort according to another criterion and if both
the old and the new <span class="xref">Lucene.Net.Search.Sort</span>s have the same identifier, this
<span class="xref">Lucene.Net.Search.ICollector</span> will incorrectly detect sorted segments.</li>
</ul>
@lucene.experimental
</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">EarlyTerminatingSortingCollector</span></div>
</div>
<div classs="implements">
<h5>Implements</h5>
<div><span class="xref">Lucene.Net.Search.ICollector</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Lucene.Net.Index.Sorter.html">Lucene.Net.Index.Sorter</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.Misc.dll</h6>
<h5 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class EarlyTerminatingSortingCollector : ICollector</code></pre>
</div>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector__ctor_Lucene_Net_Search_ICollector_Lucene_Net_Search_Sort_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.%23ctor(Lucene.Net.Search.ICollector%2CLucene.Net.Search.Sort%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L90">View Source</a>
</span>
<a id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector__ctor_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.#ctor*"></a>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector__ctor_Lucene_Net_Search_ICollector_Lucene_Net_Search_Sort_System_Int32_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.#ctor(Lucene.Net.Search.ICollector,Lucene.Net.Search.Sort,System.Int32)">EarlyTerminatingSortingCollector(ICollector, Sort, Int32)</h4>
<div class="markdown level1 summary"><p>Create a new <a class="xref" href="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.html">EarlyTerminatingSortingCollector</a> instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public EarlyTerminatingSortingCollector(ICollector in, Sort sort, int numDocsToCollect)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Search.ICollector</span></td>
<td><span class="parametername">in</span></td>
<td><p>the collector to wrap </p>
</td>
</tr>
<tr>
<td><span class="xref">Lucene.Net.Search.Sort</span></td>
<td><span class="parametername">sort</span></td>
<td><p>the sort you are sorting the search results on </p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">numDocsToCollect</span></td>
<td><p>the number of documents to collect on each segment. When wrapping
a <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.TopDocsCollector-1.html">TopDocsCollector&lt;T&gt;</a>, this number should be the number of
hits. </p>
</td>
</tr>
</tbody>
</table>
<h3 id="fields">Fields
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_in.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_in%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L63">View Source</a>
</span>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_in" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_in">m_in</h4>
<div class="markdown level1 summary"><p>The wrapped Collector </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected readonly ICollector m_in</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Search.ICollector</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_numDocsToCollect.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_numDocsToCollect%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L69">View Source</a>
</span>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_numDocsToCollect" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_numDocsToCollect">m_numDocsToCollect</h4>
<div class="markdown level1 summary"><p>Number of documents to collect in each segment </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected readonly int m_numDocsToCollect</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_segmentSorted.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_segmentSorted%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L75">View Source</a>
</span>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_segmentSorted" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_segmentSorted">m_segmentSorted</h4>
<div class="markdown level1 summary"><p>True if the current segment being processed is sorted by <a class="xref" href="http://localhost:8080/api/core/Lucene.Net.Search.Sort.html#Lucene_Net_Search_Sort__ctor">Sort()</a> </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected bool m_segmentSorted</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_segmentTotalCollect.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_segmentTotalCollect%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L72">View Source</a>
</span>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_segmentTotalCollect" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_segmentTotalCollect">m_segmentTotalCollect</h4>
<div class="markdown level1 summary"><p>Number of documents to collect in the current segment being processed </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected int m_segmentTotalCollect</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_sort.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_sort%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L66">View Source</a>
</span>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_m_sort" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.m_sort">m_sort</h4>
<div class="markdown level1 summary"><p>Sort used to sort the search results </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected readonly Sort m_sort</code></pre>
</div>
<h5 class="fieldValue">Field Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Search.Sort</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="properties">Properties
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_AcceptsDocsOutOfOrder.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.AcceptsDocsOutOfOrder%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L123">View Source</a>
</span>
<a id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_AcceptsDocsOutOfOrder_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.AcceptsDocsOutOfOrder*"></a>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_AcceptsDocsOutOfOrder" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.AcceptsDocsOutOfOrder">AcceptsDocsOutOfOrder</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool AcceptsDocsOutOfOrder { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_Collect_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.Collect(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L106">View Source</a>
</span>
<a id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_Collect_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.Collect*"></a>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_Collect_System_Int32_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.Collect(System.Int32)">Collect(Int32)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void Collect(int doc)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">doc</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_SetNextReader_Lucene_Net_Index_AtomicReaderContext_.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.SetNextReader(Lucene.Net.Index.AtomicReaderContext)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L115">View Source</a>
</span>
<a id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_SetNextReader_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.SetNextReader*"></a>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_SetNextReader_Lucene_Net_Index_AtomicReaderContext_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.SetNextReader(Lucene.Net.Index.AtomicReaderContext)">SetNextReader(AtomicReaderContext)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void SetNextReader(AtomicReaderContext context)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Index.AtomicReaderContext</span></td>
<td><span class="parametername">context</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_SetScorer_Lucene_Net_Search_Scorer_.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.SetScorer(Lucene.Net.Search.Scorer)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/NightOwl888/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L101">View Source</a>
</span>
<a id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_SetScorer_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.SetScorer*"></a>
<h4 id="Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector_SetScorer_Lucene_Net_Search_Scorer_" data-uid="Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector.SetScorer(Lucene.Net.Search.Scorer)">SetScorer(Scorer)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void SetScorer(Scorer scorer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Lucene.Net.Search.Scorer</span></td>
<td><span class="parametername">scorer</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="implements">Implements</h3>
<div>
<span class="xref">Lucene.Net.Search.ICollector</span>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs/4.8.0-beta00011/websites/apidocs/apiSpec/new?filename=Lucene_Net_Index_Sorter_EarlyTerminatingSortingCollector.md&amp;value=---%0Auid%3A%20Lucene.Net.Index.Sorter.EarlyTerminatingSortingCollector%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/apache/lucenenet/blob/release/Lucene.Net_4_8_0_beta00011/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs/#L59" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 Licensed to the Apache Software Foundation (ASF)
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.vendor.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/docfx.js"></script>
<script type="text/javascript" src="https://lucenenet.apache.org/docs/4.8.0-beta00009/styles/main.js"></script>
</body>
</html>