Class: TupleImpl
- Inherits:
-
Object
- Object
- TupleImpl
- Defined in:
- lib/red_storm/dsl/tuple.rb
Instance Method Summary collapse
Instance Method Details
#contains?(field) ⇒ Boolean
30 31 32 |
# File 'lib/red_storm/dsl/tuple.rb', line 30 def contains?(field) contains(field.to_s) end |
#field_index(field) ⇒ Object
26 27 28 |
# File 'lib/red_storm/dsl/tuple.rb', line 26 def field_index(field) fieldIndex(field.to_s) end |
#value(i) ⇒ Object Also known as: []
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/red_storm/dsl/tuple.rb', line 12 def value(i) case i when Fixnum getValue(i) when String getValueByField(i) when Symbol getValueByField(i.to_s) else raise(RedStorm::DSL::TupleError, "unsupported tuple index class=#{i.class.to_s} for #{i.inspect}") end end |