Class: Hexspace::TRowSet
- Inherits:
-
Object
- Object
- Hexspace::TRowSet
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- STARTROWOFFSET =
1
- ROWS =
2
- COLUMNS =
3
- BINARYCOLUMNS =
4
- COLUMNCOUNT =
5
- FIELDS =
{ STARTROWOFFSET => {:type => ::Thrift::Types::I64, :name => 'startRowOffset'}, ROWS => {:type => ::Thrift::Types::LIST, :name => 'rows', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TRow}}, COLUMNS => {:type => ::Thrift::Types::LIST, :name => 'columns', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hexspace::TColumn}, :optional => true}, BINARYCOLUMNS => {:type => ::Thrift::Types::STRING, :name => 'binaryColumns', :binary => true, :optional => true}, COLUMNCOUNT => {:type => ::Thrift::Types::I32, :name => 'columnCount', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1015 |
# File 'lib/hexspace/tcli_service_types.rb', line 1015 def struct_fields; FIELDS; end |
#validate ⇒ Object
1017 1018 1019 1020 |
# File 'lib/hexspace/tcli_service_types.rb', line 1017 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 |