Class: Impala::Protocol::THdfsTable
- Inherits:
-
Object
- Object
- Impala::Protocol::THdfsTable
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/descriptors_types.rb
Constant Summary collapse
- HDFSBASEDIR =
1
- PARTITIONKEYNAMES =
2
- NULLPARTITIONKEYVALUE =
3
- PARTITIONS =
4
- FIELDS =
{ HDFSBASEDIR => { :type => ::Thrift::Types::STRING, :name => 'hdfsBaseDir' }, PARTITIONKEYNAMES => { :type => ::Thrift::Types::LIST, :name => 'partitionKeyNames', :element => { :type => ::Thrift::Types::STRING } }, NULLPARTITIONKEYVALUE => { :type => ::Thrift::Types::STRING, :name => 'nullPartitionKeyValue' }, PARTITIONS => { :type => ::Thrift::Types::MAP, :name => 'partitions', :key => { :type => ::Thrift::Types::I64 }, :value => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::THdfsPartition } } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
145 |
# File 'lib/impala/protocol/descriptors_types.rb', line 145 def struct_fields; FIELDS; end |
#validate ⇒ Object
147 148 149 150 151 152 |
# File 'lib/impala/protocol/descriptors_types.rb', line 147 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hdfsBaseDir is unset!') unless @hdfsBaseDir raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitionKeyNames is unset!') unless @partitionKeyNames raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nullPartitionKeyValue is unset!') unless @nullPartitionKeyValue raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitions is unset!') unless @partitions end |