Class: Apache::Hadoop::Hbase::Thrift::ColumnDescriptor

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

Overview

An HColumnDescriptor contains information about a column family such as the number of versions, compression settings, etc. It is used as input when creating a table or adding a column.

Constant Summary collapse

NAME =
1
MAXVERSIONS =
2
COMPRESSION =
3
INMEMORY =
4
BLOOMFILTERTYPE =
5
BLOOMFILTERVECTORSIZE =
6
BLOOMFILTERNBHASHES =
7
BLOCKCACHEENABLED =
8
TIMETOLIVE =
9
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :binary => true},
  MAXVERSIONS => {:type => ::Thrift::Types::I32, :name => 'maxVersions', :default => 3},
  COMPRESSION => {:type => ::Thrift::Types::STRING, :name => 'compression', :default => %q"NONE"},
  INMEMORY => {:type => ::Thrift::Types::BOOL, :name => 'inMemory', :default => false},
  BLOOMFILTERTYPE => {:type => ::Thrift::Types::STRING, :name => 'bloomFilterType', :default => %q"NONE"},
  BLOOMFILTERVECTORSIZE => {:type => ::Thrift::Types::I32, :name => 'bloomFilterVectorSize', :default => 0},
  BLOOMFILTERNBHASHES => {:type => ::Thrift::Types::I32, :name => 'bloomFilterNbHashes', :default => 0},
  BLOCKCACHEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'blockCacheEnabled', :default => false},
  TIMETOLIVE => {:type => ::Thrift::Types::I32, :name => 'timeToLive', :default => -1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



61
# File 'lib/thrift/hbase_types.rb', line 61

def struct_fields; FIELDS; end

#validateObject



63
64
# File 'lib/thrift/hbase_types.rb', line 63

def validate
end