Class: Hypertable::ThriftGen::NamespaceListing

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/hypertable/gen-rb/client_types.rb

Overview

Defines an individual namespace listing

<dl>

<dt>name</dt>
<dd>Name of the listing.</dd>

<dt>is_namespace</dt>
<dd>true if this entry is a namespace.</dd>

</dl>

Constant Summary collapse

NAME =
1
IS_NAMESPACE =
2
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  IS_NAMESPACE => {:type => ::Thrift::Types::BOOL, :name => 'is_namespace'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



312
# File 'lib/hypertable/gen-rb/client_types.rb', line 312

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


314
315
316
317
# File 'lib/hypertable/gen-rb/client_types.rb', line 314

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field is_namespace is unset!') if @is_namespace.nil?
end