Sha256: 7e2fbbe08e50948b40d572a8098aafbd96b448e1e1e01ad45ff46576fc45290f

Contents?: true

Size: 876 Bytes

Versions: 4

Compression:

Stored size: 876 Bytes

Contents

# encoding: utf-8

# This writer is a dummy writer that simply does nothing.
# @author Gernot Kogler

module XapianDb
  module IndexWriters

    class NoOpWriter

      # Update an object in the index
      # @param [Object] obj An instance of a class with a blueprint configuration
      def index(obj); end

      # Remove an object from the index
      # @param [Object] obj An instance of a class with a blueprint configuration
      def unindex(obj); end

      # Reindex all objects of a given class
      # @param [Class] klass The class to reindex
      # @param [Hash] options Options for reindexing
      # @option options [Boolean] :verbose (false) Should the reindexing give status informations?
      def reindex_class(klass, options={})
        raise "rebuild_xapian_index is not supported inside a block with auto indexing disabled"
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xapian_db-0.5.13 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-0.5.12 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-0.5.11 lib/xapian_db/index_writers/no_op_writer.rb
xapian_db-0.5.10 lib/xapian_db/index_writers/no_op_writer.rb