Sha256: 860c5ad137484fca2b3a94683f602ff3541fc19b7f5988e758b012eda0e89702

Contents?: true

Size: 624 Bytes

Versions: 38

Compression:

Stored size: 624 Bytes

Contents

module Pacer
  module Filter
    module IndexFilter
      attr_accessor :index, :key, :value

      def count
        if @index and @key and @value
          if @index.respond_to? :count
            @index.count(@key, graph.encode_property(@value))
          else
            super
          end
        else
          super
        end
      end

      protected

      def source_iterator
        src = index.get(key, graph.encode_property(value)) || java.util.ArrayList.new
        src.iterator
      end

      def inspect_string
        "#{ inspect_class_name }(#{ key }: #{value.inspect})"
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
pacer-2.0.24-java lib/pacer/filter/index_filter.rb
pacer-2.0.22-java lib/pacer/filter/index_filter.rb
pacer-2.0.20-java lib/pacer/filter/index_filter.rb
pacer-2.0.19-java lib/pacer/filter/index_filter.rb
pacer-2.0.18-java lib/pacer/filter/index_filter.rb
pacer-2.0.17-java lib/pacer/filter/index_filter.rb
pacer-2.0.16-java lib/pacer/filter/index_filter.rb
pacer-2.0.15-java lib/pacer/filter/index_filter.rb
pacer-2.0.14-java lib/pacer/filter/index_filter.rb
pacer-2.0.13-java lib/pacer/filter/index_filter.rb
pacer-2.0.12-java lib/pacer/filter/index_filter.rb
pacer-2.0.10-java lib/pacer/filter/index_filter.rb
pacer-2.0.10.pre-java lib/pacer/filter/index_filter.rb
pacer-2.0.8-java lib/pacer/filter/index_filter.rb
pacer-2.0.6-java lib/pacer/filter/index_filter.rb
pacer-2.0.4.pre-java lib/pacer/filter/index_filter.rb
pacer-2.0.0.pre-java lib/pacer/filter/index_filter.rb
pacer-1.6.0-java lib/pacer/filter/index_filter.rb
pacer-1.5.4-java lib/pacer/filter/index_filter.rb
pacer-1.5.3-java lib/pacer/filter/index_filter.rb