class Bud::PushPredicate

Public Class Methods

new(pred_symbol, elem_name=nil, collection_name=nil, bud_instance=nil, schema_in=nil, &blk) click to toggle source
Calls superclass method Bud::PushElement::new
# File lib/bud/executor/elements.rb, line 392
def initialize(pred_symbol, elem_name=nil, collection_name=nil,
               bud_instance=nil, schema_in=nil, &blk)
  @pred_symbol = pred_symbol
  @in_buf = []
  super(elem_name, bud_instance, collection_name, schema_in, &blk)
end

Public Instance Methods

flush() click to toggle source
# File lib/bud/executor/elements.rb, line 404
def flush
  # always rescans
  @in_buf.send(@pred_symbol, @blk)
end
insert(item, source) click to toggle source
# File lib/bud/executor/elements.rb, line 399
def insert(item, source)
  @in_buf << item
end
invalidate_cache() click to toggle source
# File lib/bud/executor/elements.rb, line 409
def invalidate_cache
  @in_buf.clear
end