Class: Impala::Protocol::THdfsTableSink
- Inherits:
-
Object
- Object
- Impala::Protocol::THdfsTableSink
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/data_sinks_types.rb
Constant Summary collapse
- PARTITION_KEY_EXPRS =
1
- OVERWRITE =
2
- FIELDS =
{ PARTITION_KEY_EXPRS => { :type => ::Thrift::Types::LIST, :name => 'partition_key_exprs', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TExpr } }, OVERWRITE => { :type => ::Thrift::Types::BOOL, :name => 'overwrite' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
52 |
# File 'lib/impala/protocol/data_sinks_types.rb', line 52 def struct_fields; FIELDS; end |
#validate ⇒ Object
54 55 56 57 |
# File 'lib/impala/protocol/data_sinks_types.rb', line 54 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partition_key_exprs is unset!') unless @partition_key_exprs raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field overwrite is unset!') if @overwrite.nil? end |