Class: Hive2::Thrift::TRowSet
- Inherits:
-
Object
- Object
- Hive2::Thrift::TRowSet
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_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 => ::Hive2::Thrift::TRow}}, COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TColumn}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
841 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 841 def struct_fields; FIELDS; end |
#validate ⇒ Object
843 844 845 846 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 843 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 |