Class: Apache::Hadoop::Hbase::Thrift2::TTimeRange

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/hbase/hbase_types.rb

Constant Summary collapse

MINSTAMP =
1
MAXSTAMP =
2
FIELDS =
{
  MINSTAMP => {:type => ::Thrift::Types::I64, :name => 'minStamp'},
  MAXSTAMP => {:type => ::Thrift::Types::I64, :name => 'maxStamp'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



39
# File 'lib/hbase/hbase_types.rb', line 39

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


41
42
43
44
# File 'lib/hbase/hbase_types.rb', line 41

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field minStamp is unset!') unless @minStamp
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field maxStamp is unset!') unless @maxStamp
end