Class: Flock::Edges::SelectOperation

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct
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



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

def struct_fields; FIELDS; end

#validateObject



169
170
171
172
173
# File 'lib/flock/gen-rb/flockdb_types.rb', line 169

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