Tabnine Logo
PhraseQueue.top
Code IndexAdd Tabnine to your IDE (free)

How to use
top
method
in
org.apache.lucene.search.PhraseQueue

Best Java code snippets using org.apache.lucene.search.PhraseQueue.top (Showing top 10 results out of 315)

origin: org.apache.lucene/lucene-core

captureLead(pp);
matchLength = end - pp.position;
int next = pq.top().position; 
while (advancePP(pp)) {
 if (hasRpts && !advanceRpts(pp)) {
  next = pq.top().position;
  assert pp != null;  // if the pq is not full, then positioned == false
  matchLength = end - pp.position;
origin: org.apache.lucene/lucene-core-jfrog

protected final void pqToList() {
 last = first = null;
 while (pq.top() != null) {
  PhrasePositions pp = (PhrasePositions) pq.pop();
  if (last != null) {			  // add next to end of list
   last.next = pp;
  } else
   first = pp;
  last = pp;
  pp.next = null;
 }
}
origin: lucene/lucene

protected final void pqToList() {
 last = first = null;
 while (pq.top() != null) {
  PhrasePositions pp = (PhrasePositions) pq.pop();
  if (last != null) {			  // add next to end of list
   last.next = pp;
  } else
   first = pp;
  last = pp;
  pp.next = null;
 }
}
origin: org.apache.lucene/com.springsource.org.apache.lucene

protected final void pqToList() {
 last = first = null;
 while (pq.top() != null) {
  PhrasePositions pp = (PhrasePositions) pq.pop();
  if (last != null) {			  // add next to end of list
   last.next = pp;
  } else
   first = pp;
  last = pp;
  pp.next = null;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

captureLead(pp);
matchLength = end - pp.position;
int next = pq.top().position; 
while (advancePP(pp)) {
 if (hasRpts && !advanceRpts(pp)) {
  next = pq.top().position;
  assert pp != null;  // if the pq is not full, then positioned == false
  matchLength = end - pp.position;
origin: org.infinispan/infinispan-embedded-query

PhrasePositions pp = pq.pop();
int matchLength = end - pp.position;
int next = pq.top().position; 
while (advancePP(pp)) {
 if (hasRpts && !advanceRpts(pp)) {
  next = pq.top().position;
  matchLength = end - pp.position;
 } else {
origin: harbby/presto-connectors

PhrasePositions pp = pq.pop();
int matchLength = end - pp.position;
int next = pq.top().position; 
while (advancePP(pp)) {
 if (hasRpts && !advanceRpts(pp)) {
  next = pq.top().position;
  matchLength = end - pp.position;
 } else {
origin: lucene/lucene

PhrasePositions pp = (PhrasePositions) pq.pop();
int start = pp.position;
int next = ((PhrasePositions) pq.top()).position;
for (int pos = start; pos <= next; pos = pp.position) {
origin: org.apache.lucene/lucene-core-jfrog

PhrasePositions pp = (PhrasePositions) pq.pop();
int start = pp.position;
int next = ((PhrasePositions) pq.top()).position;
origin: org.apache.lucene/com.springsource.org.apache.lucene

PhrasePositions pp = (PhrasePositions) pq.pop();
int start = pp.position;
int next = ((PhrasePositions) pq.top()).position;
org.apache.lucene.searchPhraseQueuetop

Popular methods of PhraseQueue

  • <init>
  • clear
  • pop
  • add
  • initialize
  • put
  • insert
  • size

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Kernel (java.awt.image)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now