Class: Hive2::Thrift::TGetTablesReq

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

SESSIONHANDLE =
1
CATALOGNAME =
2
SCHEMANAME =
3
TABLENAME =
4
TABLETYPES =
5
FIELDS =
{
  SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hive2::Thrift::TSessionHandle},
  CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true},
  SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true},
  TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName', :optional => true},
  TABLETYPES => {:type => ::Thrift::Types::LIST, :name => 'tableTypes', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


1298
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1298

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

1300
1301
1302
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1300

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle
end