Sha256: a3388c13abec2010200a9cdad7da5ed4c256763db2c746f9e363a9dcfc3cd4bc
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
module Pacer module Routes module RouteOperations def has_count_route(opts = {}) chain_route({ :transform => :has_count_cap }.merge(opts)) end def has_count?(opts = {}) has_count_route(opts).first end end end module Transform module HasCountCap import com.tinkerpop.pipes.transform.HasCountPipe attr_accessor :min, :max protected def attach_pipe(end_pipe) pipe = HasCountPipe.new(min || -1, max || -1) pipe.setStarts end_pipe if end_pipe pipe end def inspect_string if min and max "HasCount(#{ min }..#{max})" elsif min "HasCount(>= #{ min })" elsif max "HasCount(<= #{ max })" else "HasCount(...any...)" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pacer-0.9.1.1-java | lib/pacer/transform/has_count_cap.rb |