Class: Flock::Edges::SelectOperation

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

Constant Summary collapse

OPERATION_TYPE =
1
TERM =
2
FIELDS =
{
  OPERATION_TYPE => {:type => ::Thrift::Types::I32, :name => 'operation_type', :enum_class => Flock::Edges::SelectOperationType},
  TERM => {:type => ::Thrift::Types::STRUCT, :name => 'term', :class => Flock::Edges::QueryTerm, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



188
# File 'lib/flock/gen-rb/flockdb_types.rb', line 188

def struct_fields; FIELDS; end

#validateObject



190
191
192
193
194
# File 'lib/flock/gen-rb/flockdb_types.rb', line 190

def validate
  unless @operation_type.nil? || Flock::Edges::SelectOperationType::VALID_VALUES.include?(@operation_type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field operation_type!')
  end
end