Tabnine Logo
ProcessingResult.getAttributes
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributes
method
in
org.carrot2.core.ProcessingResult

Best Java code snippets using org.carrot2.core.ProcessingResult.getAttributes (Showing top 4 results out of 315)

origin: org.carrot2/carrot2-core

/**
 * Updates the statistics
 */
void update(ProcessingResult processingResult)
{
  synchronized (this)
  {
    totalQueries++;
    if (processingResult != null)
    {
      goodQueries++;
      final Map<String, Object> attributes = processingResult
        .getAttributes();
      addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_SOURCE,
        sourceTimeAverage);
      addTimeToAverage(attributes,
        AttributeNames.PROCESSING_TIME_ALGORITHM, algorithmTimeAverage);
      addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_TOTAL,
        totalTimeAverage);
    }
  }
}
origin: org.carrot2/carrot2-core

    xsltParameters);
query = (String) processingResult.getAttributes().get(AttributeNames.QUERY);
documents = processingResult.getDocuments();
origin: org.carrot2/carrot2-core

final Map<String, Object> resultAttributes = processingResult.getAttributes();
response.metadata
  .put(SearchEngineResponse.RESULTS_TOTAL_KEY, resultAttributes
origin: medcl/elasticsearch-carrot2

final Map<String, Object> attributes = processingResult.getAttributes();
org.carrot2.coreProcessingResultgetAttributes

Javadoc

Returns attributes fed-in and collected during processing. The returned map is unmodifiable.

Popular methods of ProcessingResult

  • getClusters
    Returns the clusters that have been created during processing. The returned list is unmodifiable.
  • <init>
    Creates a ProcessingResult with the provided attributes. Assigns unique document identifiers if docu
  • deserialize
    Deserialize from an input stream of characters.
  • documentIdToReference
    Replace document refids with the actual references upon deserialization.
  • getDocuments
    Returns the documents that have been processed. The returned collection is unmodifiable.
  • prepareAttributesForSerialization
    Prepares a temporary attributes map for serialization purposes. Includes only the requested elements
  • serialize
    Serializes this ProcessingResult to a byte stream. Documents, clusters and other attributes can be i
  • serializeJson
    Serializes this processing result as JSON to the provided writer. Documents, clusters and other attr

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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