Class DummyChangeIndex

    • Constructor Detail

      • DummyChangeIndex

        public DummyChangeIndex()
    • Method Detail

      • replace

        public void replace​(ChangeData cd)
        Description copied from interface: Index
        Update a document in the index.

        Semantically equivalent to deleting the document and reinserting it with new field values. A document that does not already exist is created. Results may not be immediately visible to searchers, but should be visible within a reasonable amount of time.

        Specified by:
        replace in interface Index<Change.Id,​ChangeData>
        Parameters:
        cd - document object
      • delete

        public void delete​(Change.Id id)
        Description copied from interface: Index
        Delete a document from the index by key.
        Specified by:
        delete in interface Index<Change.Id,​ChangeData>
        Parameters:
        id - document key
      • getSource

        public ChangeDataSource getSource​(Predicate<ChangeData> p,
                                          QueryOptions opts)
        Description copied from interface: Index
        Convert the given operator predicate into a source searching the index and returning only the documents matching that predicate.

        This method may be called multiple times for variations on the same predicate or multiple predicate subtrees in the course of processing a single query, so it should not have any side effects (e.g. starting a search in the background).

        Specified by:
        getSource in interface Index<Change.Id,​ChangeData>
        Parameters:
        p - the predicate to match. Must be a tree containing only AND, OR, or NOT predicates as internal nodes, and IndexPredicates as leaves.
        opts - query options not implied by the predicate, such as start and limit.
        Returns:
        a source of documents matching the predicate, returned in a defined order depending on the type of documents.
      • markReady

        public void markReady​(boolean ready)
        Description copied from interface: Index
        Mark whether this index is up-to-date and ready to serve reads.
        Specified by:
        markReady in interface Index<Change.Id,​ChangeData>
        Parameters:
        ready - whether the index is ready
      • getMaxLimit

        public int getMaxLimit()