Class: Impala::Protocol::Hive::TRowSet
- Inherits:
-
Object
- Object
- Impala::Protocol::Hive::TRowSet
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/cli_service_types.rb
Constant Summary collapse
- STARTROWOFFSET =
1
- ROWS =
2
- COLUMNS =
3
- FIELDS =
{ STARTROWOFFSET => {:type => ::Thrift::Types::I64, :name => 'startRowOffset'}, ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::Hive::TRow}}, COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::Hive::TColumn}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
617 |
# File 'lib/impala/protocol/cli_service_types.rb', line 617 def struct_fields; FIELDS; end |
#validate ⇒ Object
619 620 621 622 |
# File 'lib/impala/protocol/cli_service_types.rb', line 619 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startRowOffset is unset!') unless @startRowOffset raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field rows is unset!') unless @rows end |