Sha256: d8d1383600c9d8979f3b6393b15fdee68e64194bc409442ffeda0092451abf4c

Contents?: true

Size: 544 Bytes

Versions: 24

Compression:

Stored size: 544 Bytes

Contents

module Pacer
  module Routes
    module RouteOperations
      import com.tinkerpop.pipes.filter.DuplicateFilterPipe
      import com.tinkerpop.pipes.filter.CyclicPathFilterPipe

      # Do not return duplicate elements.
      def uniq
        chain_route :pipe_class => DuplicateFilterPipe, :route_name => 'uniq'
      end

      # Filter out any element where its path would contain the same element twice.
      def unique_path
        chain_route :pipe_class => CyclicPathFilterPipe, :route_name => 'unique_path'
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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