congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SortedSetDocValuesFacetCounts.countOneSegment
Code IndexAdd Tabnine to your IDE (free)

How to use
countOneSegment
method
in
org.apache.lucene.facet.sortedset.SortedSetDocValuesFacetCounts

Best Java code snippets using org.apache.lucene.facet.sortedset.SortedSetDocValuesFacetCounts.countOneSegment (Showing top 2 results out of 315)

origin: org.apache.lucene/lucene-facet

/** Does all the "real work" of tallying up the counts. */
private final void countAll() throws IOException {
 //System.out.println("ssdv count");
 OrdinalMap ordinalMap;
 // TODO: is this right?  really, we need a way to
 // verify that this ordinalMap "matches" the leaves in
 // matchingDocs...
 if (dv instanceof MultiDocValues.MultiSortedSetDocValues) {
  ordinalMap = ((MultiSortedSetDocValues) dv).mapping;
 } else {
  ordinalMap = null;
 }
 
 for(LeafReaderContext context : state.getReader().leaves()) {
  countOneSegment(ordinalMap, context.reader(), context.ord, null);
 }
}
origin: org.apache.lucene/lucene-facet

/** Does all the "real work" of tallying up the counts. */
private final void count(List<MatchingDocs> matchingDocs) throws IOException {
 //System.out.println("ssdv count");
 OrdinalMap ordinalMap;
 // TODO: is this right?  really, we need a way to
 // verify that this ordinalMap "matches" the leaves in
 // matchingDocs...
 if (dv instanceof MultiDocValues.MultiSortedSetDocValues && matchingDocs.size() > 1) {
  ordinalMap = ((MultiSortedSetDocValues) dv).mapping;
 } else {
  ordinalMap = null;
 }
 
 IndexReader reader = state.getReader();
 for(MatchingDocs hits : matchingDocs) {
  // LUCENE-5090: make sure the provided reader context "matches"
  // the top-level reader passed to the
  // SortedSetDocValuesReaderState, else cryptic
  // AIOOBE can happen:
  if (ReaderUtil.getTopLevelContext(hits.context).reader() != reader) {
   throw new IllegalStateException("the SortedSetDocValuesReaderState provided to this class does not match the reader being searched; you must create a new SortedSetDocValuesReaderState every time you open a new IndexReader");
  }
  countOneSegment(ordinalMap, hits.context.reader(), hits.context.ord, hits);
 }
}
org.apache.lucene.facet.sortedsetSortedSetDocValuesFacetCountscountOneSegment

Popular methods of SortedSetDocValuesFacetCounts

  • <init>
    Counts all facet dimensions across the provided hits.
  • getTopChildren
  • count
    Does all the "real work" of tallying up the counts.
  • getDim
  • countAll
    Does all the "real work" of tallying up the counts.
  • getAllDims

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
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