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-1.5.2-java lib/pacer/filter/uniq_filter.rb
pacer-1.5.1-java lib/pacer/filter/uniq_filter.rb
pacer-1.4.2-java lib/pacer/filter/uniq_filter.rb
pacer-1.4.1-java lib/pacer/filter/uniq_filter.rb