Class: Impala::Protocol::TTableSink
- Inherits:
-
Object
- Object
- Impala::Protocol::TTableSink
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/data_sinks_types.rb
Constant Summary collapse
- TARGET_TABLE_ID =
1
- HDFS_TABLE_SINK =
2
- FIELDS =
{ TARGET_TABLE_ID => { :type => ::Thrift::Types::I32, :name => 'target_table_id' }, HDFS_TABLE_SINK => { :type => ::Thrift::Types::STRUCT, :name => 'hdfs_table_sink', :class => Impala::Protocol::THdfsTableSink } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
72 |
# File 'lib/impala/protocol/data_sinks_types.rb', line 72 def struct_fields; FIELDS; end |
#validate ⇒ Object
74 75 76 77 |
# File 'lib/impala/protocol/data_sinks_types.rb', line 74 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field target_table_id is unset!') unless @target_table_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hdfs_table_sink is unset!') unless @hdfs_table_sink end |