Class: Blur::RowMutation
- Inherits:
-
Object
- Object
- Blur::RowMutation
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/active_blur/thrift/blur_types.rb
Constant Summary collapse
- TABLE =
1
- ROWID =
2
- WAL =
3
- ROWMUTATIONTYPE =
4
- RECORDMUTATIONS =
5
- FIELDS =
{ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}, ROWID => {:type => ::Thrift::Types::STRING, :name => 'rowId'}, WAL => {:type => ::Thrift::Types::BOOL, :name => 'wal', :default => true}, ROWMUTATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'rowMutationType', :enum_class => ::Blur::RowMutationType}, RECORDMUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'recordMutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::RecordMutation}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
437 |
# File 'lib/active_blur/thrift/blur_types.rb', line 437 def struct_fields; FIELDS; end |
#validate ⇒ Object
439 440 441 442 443 |
# File 'lib/active_blur/thrift/blur_types.rb', line 439 def validate unless @rowMutationType.nil? || ::Blur::RowMutationType::VALID_VALUES.include?(@rowMutationType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field rowMutationType!') end end |