Class: Impala::Protocol::TDataStreamSink
- Inherits:
-
Object
- Object
- Impala::Protocol::TDataStreamSink
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/data_sinks_types.rb
Constant Summary collapse
- DEST_NODE_ID =
1
- OUTPUT_PARTITION =
2
- FIELDS =
{ DEST_NODE_ID => { :type => ::Thrift::Types::I32, :name => 'dest_node_id' }, OUTPUT_PARTITION => { :type => ::Thrift::Types::STRUCT, :name => 'output_partition', :class => Impala::Protocol::TDataPartition } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
32 |
# File 'lib/impala/protocol/data_sinks_types.rb', line 32 def struct_fields; FIELDS; end |
#validate ⇒ Object
34 35 36 37 |
# File 'lib/impala/protocol/data_sinks_types.rb', line 34 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dest_node_id is unset!') unless @dest_node_id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field output_partition is unset!') unless @output_partition end |