Class: Norikra::UDFSpecHelper::UDFAggregationInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/norikra/udf_spec_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(instance) ⇒ UDFAggregationInstance

Returns a new instance of UDFAggregationInstance.



65
66
67
# File 'lib/norikra/udf_spec_helper.rb', line 65

def initialize(instance)
  @func = instance
end

Instance Method Details

#_call(type, *args) ⇒ Object



69
70
71
# File 'lib/norikra/udf_spec_helper.rb', line 69

def _call(type, *args)
  self.send(type, *args)
end

#clearObject

public void clear()



88
# File 'lib/norikra/udf_spec_helper.rb', line 88

def clear; @func.clear; end

#enter(*args) ⇒ Object

public void enter(Object value)



74
# File 'lib/norikra/udf_spec_helper.rb', line 74

def enter(*args); @func.enter(*args); end

#getValueObject

public Object getValue()



77
78
79
80
81
82
83
84
85
86
# File 'lib/norikra/udf_spec_helper.rb', line 77

def getValue # public Object getValue()
  v = @func.getValue
  if v.respond_to?(:to_hash)
    v.to_hash
  elsif v.respond_to?(:to_a)
    v.to_a
  else
    v
  end
end

#getValueTypeObject

public Class getValueType()



73
# File 'lib/norikra/udf_spec_helper.rb', line 73

def getValueType; @func.getValueType; end

#leave(*args) ⇒ Object

public void leave(Object value)



75
# File 'lib/norikra/udf_spec_helper.rb', line 75

def leave(*args); @func.leave(*args); end