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

How to use
stream
method
in
org.terrier.querying.ScoredDocList

Best Java code snippets using org.terrier.querying.ScoredDocList.stream (Showing top 2 results out of 315)

origin: terrier-org/terrier-core

if (ArrayUtils.contains(results.getMetaKeys(), metaIndexDocumentKey))
  docnos = results.stream().map(doc -> doc.getMetadata(metaIndexDocumentKey)).toArray(size -> new String[size]);
} else if (index == null && q instanceof Request) {
  final MetaIndex metaIndex = ((Request)q).getIndex().getMetaIndex();
  docnos = metaIndex.getItems(metaIndexDocumentKey, results.stream().mapToInt(doc -> doc.getDocid()).toArray());
} else if (index != null) {
  docnos = index.getMetaIndex().getItems(metaIndexDocumentKey, results.stream().mapToInt(doc -> doc.getDocid()).toArray());
} else {
  throw new IllegalStateException("No source for " +metaIndexDocumentKey+ " found. Perhaps you need to set control decorate:on");
origin: org.terrier/terrier-batch-retrieval

if (ArrayUtils.contains(results.getMetaKeys(), metaIndexDocumentKey))
  docnos = results.stream().map(doc -> doc.getMetadata(metaIndexDocumentKey)).toArray(size -> new String[size]);
} else if (index == null && q instanceof Request) {
  final MetaIndex metaIndex = ((Request)q).getIndex().getMetaIndex();
  docnos = metaIndex.getItems(metaIndexDocumentKey, results.stream().mapToInt(doc -> doc.getDocid()).toArray());
} else if (index != null) {
  docnos = index.getMetaIndex().getItems(metaIndexDocumentKey, results.stream().mapToInt(doc -> doc.getDocid()).toArray());
} else {
  throw new IllegalStateException("No source for " +metaIndexDocumentKey+ " found. Perhaps you need to set control decorate:on");
org.terrier.queryingScoredDocListstream

Popular methods of ScoredDocList

  • size
  • get
  • getMetaKeys
  • add

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for Android Studio
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