Class: Hypertable::ThriftGen::MutateSpec
- Inherits:
-
Object
- Object
- Hypertable::ThriftGen::MutateSpec
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hypertable/gen-rb/client_types.rb
Overview
Specifies options for a shared periodic mutator
<dl>
<dt>appname</dt>
<dd>String key used to share/retrieve mutator, eg: "my_ht_app"</dd>
<dt>flush_interval</dt>
<dd>Time interval between flushes</dd>
<dt>flags</dt>
<dd>Mutator flags</dt>
</dl>
Constant Summary collapse
- APPNAME =
1
- FLUSH_INTERVAL =
2
- FLAGS =
3
- FIELDS =
{ APPNAME => {:type => ::Thrift::Types::STRING, :name => 'appname', :default => %q""}, FLUSH_INTERVAL => {:type => ::Thrift::Types::I32, :name => 'flush_interval', :default => 1000}, FLAGS => {:type => ::Thrift::Types::I32, :name => 'flags', :default => 2} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
255 |
# File 'lib/hypertable/gen-rb/client_types.rb', line 255 def struct_fields; FIELDS; end |
#validate ⇒ Object
257 258 259 260 261 |
# File 'lib/hypertable/gen-rb/client_types.rb', line 257 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field appname is unset!') unless @appname raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field flush_interval is unset!') unless @flush_interval raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field flags is unset!') unless @flags end |