Class: Impala::Protocol::TRowBatch
- Inherits:
-
Object
- Object
- Impala::Protocol::TRowBatch
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/data_types.rb
Constant Summary collapse
- NUM_ROWS =
1
- ROW_TUPLES =
2
- TUPLE_OFFSETS =
3
- TUPLE_DATA =
4
- FIELDS =
{ NUM_ROWS => { :type => ::Thrift::Types::I32, :name => 'num_rows' }, ROW_TUPLES => { :type => ::Thrift::Types::LIST, :name => 'row_tuples', :element => { :type => ::Thrift::Types::I32 } }, TUPLE_OFFSETS => { :type => ::Thrift::Types::LIST, :name => 'tuple_offsets', :element => { :type => ::Thrift::Types::I32 } }, TUPLE_DATA => { :type => ::Thrift::Types::LIST, :name => 'tuple_data', :element => { :type => ::Thrift::Types::STRING } } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
26 |
# File 'lib/impala/protocol/data_types.rb', line 26 def struct_fields; FIELDS; end |
#validate ⇒ Object
28 29 30 31 |
# File 'lib/impala/protocol/data_types.rb', line 28 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_rows is unset!') unless @num_rows raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field row_tuples is unset!') unless @row_tuples end |