Class: OMF::OML::OmlTuple

Inherits:
Tuple
  • Object
show all
Defined in:
lib/omf_oml/oml_tuple.rb

Overview

This class represents a single vector from an OML measurement stream. It provides various methods to access the vectors elements.

NOTE: Do not store the vector itself, but make a copy as the instance may be reused over various rows by the sender.

Direct Known Subclasses

OmlSqlRow

Instance Attribute Summary

Attributes inherited from Tuple

#schema, #stream_name

Instance Method Summary collapse

Methods inherited from Tuple

#[], #create_table, #initialize, #on_new_tuple, #parse_tuple, #select, #to_a

Constructor Details

This class inherits a constructor from OMF::OML::Tuple

Instance Method Details

#seq_noObject



39
40
41
# File 'lib/omf_oml/oml_tuple.rb', line 39

def seq_no
  @raw[1].to_i
end

#tsObject

end



35
36
37
# File 'lib/omf_oml/oml_tuple.rb', line 35

def ts
  @raw[0].to_f
end