Class: Impala::Protocol::TLikePredicate

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/exprs_types.rb

Constant Summary collapse

ESCAPE_CHAR =
1
FIELDS =
{
ESCAPE_CHAR => { :type => ::Thrift::Types::STRING, :name => 'escape_char' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



206
# File 'lib/impala/protocol/exprs_types.rb', line 206

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


208
209
210
# File 'lib/impala/protocol/exprs_types.rb', line 208

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field escape_char is unset!') unless @escape_char
end