Class DocumentDb

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.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
      DocumentDb()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
      Result search​(Query query, Execution execution)
      Search this document db
      • 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 Detail

      • DocumentDb

        public DocumentDb()
    • Method Detail

      • 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