Class DocumentDb

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.search.match.DocumentDb
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>

public class DocumentDb extends Searcher
A searchable database of documents
Author:
bratseth
  • Field Summary

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    put(com.yahoo.document.DocumentOperation op)
    Put a document or apply an update to this document db
    void
    remove(com.yahoo.document.Document document)
    Remove a document from this document db
    search(Query query, Execution execution)
    Search this document db

    Methods inherited from class com.yahoo.search.Searcher

    ensureFilled, fill, getLogger, process, toString

    Methods inherited from class com.yahoo.component.chain.ChainedComponent

    getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies

    Methods inherited from class com.yahoo.component.AbstractComponent

    clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DocumentDb

      public DocumentDb()
  • Method Details

    • put

      public void put(com.yahoo.document.DocumentOperation op)
      Put a document or apply an update to this document db
    • remove

      public void remove(com.yahoo.document.Document document)
      Remove a document from this document db
    • search

      public Result search(Query query, Execution execution)
      Search this document db
      Specified by:
      search in class Searcher
      Parameters:
      query - the query
      Returns:
      the result of making this query