Class: Impala::Protocol::THdfsFileSplit
- Inherits:
-
Object
- Object
- Impala::Protocol::THdfsFileSplit
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/plan_nodes_types.rb
Constant Summary collapse
- PATH =
1
- OFFSET =
2
- LENGTH =
3
- PARTITION_ID =
4
- FIELDS =
{ PATH => { :type => ::Thrift::Types::STRING, :name => 'path' }, OFFSET => { :type => ::Thrift::Types::I64, :name => 'offset' }, LENGTH => { :type => ::Thrift::Types::I64, :name => 'length' }, PARTITION_ID => { :type => ::Thrift::Types::I64, :name => 'partition_id' } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
49 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 49 def struct_fields; FIELDS; end |
#validate ⇒ Object
51 52 53 54 55 56 |
# File 'lib/impala/protocol/plan_nodes_types.rb', line 51 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field path is unset!') unless @path raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field offset is unset!') unless @offset raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field length is unset!') unless @length raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partition_id is unset!') unless @partition_id end |