# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift/protocol' module Hypertable module ThriftGen module CellFlag DELETE_ROW = 0 DELETE_CF = 1 DELETE_CELL = 2 INSERT = 255 VALID_VALUES = Set.new([DELETE_ROW, DELETE_CF, DELETE_CELL, INSERT]).freeze end # Specifies a range of rows # #
#
start_row
#
The row to start scan with. Must not contain nulls (0x00)
# #
start_inclusive
#
Whether the start row is included in the result (default: true)
# #
end_row
#
The row to end scan with. Must not contain nulls
# #
end_inclusive
#
Whether the end row is included in the result (default: true)
#
class RowInterval include ::Thrift::Struct START_ROW = 1 START_INCLUSIVE = 2 END_ROW = 3 END_INCLUSIVE = 4 Thrift::Struct.field_accessor self, :start_row, :start_inclusive, :end_row, :end_inclusive FIELDS = { START_ROW => {:type => Thrift::Types::STRING, :name => 'start_row', :optional => true}, START_INCLUSIVE => {:type => Thrift::Types::BOOL, :name => 'start_inclusive', :default => true, :optional => true}, END_ROW => {:type => Thrift::Types::STRING, :name => 'end_row', :optional => true}, END_INCLUSIVE => {:type => Thrift::Types::BOOL, :name => 'end_inclusive', :default => true, :optional => true} } def struct_fields; FIELDS; end def validate end end # Specifies a range of cells # #
#
start_row
#
The row to start scan with. Must not contain nulls (0x00)
# #
start_column
#
The column (prefix of column_family:column_qualifier) of the # start row for the scan
# #
start_inclusive
#
Whether the start row is included in the result (default: true)
# #
end_row
#
The row to end scan with. Must not contain nulls
# #
end_column
#
The column (prefix of column_family:column_qualifier) of the # end row for the scan
# #
end_inclusive
#
Whether the end row is included in the result (default: true)
#
class CellInterval include ::Thrift::Struct START_ROW = 1 START_COLUMN = 2 START_INCLUSIVE = 3 END_ROW = 4 END_COLUMN = 5 END_INCLUSIVE = 6 Thrift::Struct.field_accessor self, :start_row, :start_column, :start_inclusive, :end_row, :end_column, :end_inclusive FIELDS = { START_ROW => {:type => Thrift::Types::STRING, :name => 'start_row', :optional => true}, START_COLUMN => {:type => Thrift::Types::STRING, :name => 'start_column', :optional => true}, START_INCLUSIVE => {:type => Thrift::Types::BOOL, :name => 'start_inclusive', :default => true, :optional => true}, END_ROW => {:type => Thrift::Types::STRING, :name => 'end_row', :optional => true}, END_COLUMN => {:type => Thrift::Types::STRING, :name => 'end_column', :optional => true}, END_INCLUSIVE => {:type => Thrift::Types::BOOL, :name => 'end_inclusive', :default => true, :optional => true} } def struct_fields; FIELDS; end def validate end end # Specifies options for a scan # #
#
row_intervals
#
A list of ranges of rows to scan. Mutually exclusive with # cell_interval
# #
cell_intervals
#
A list of ranges of cells to scan. Mutually exclusive with # row_intervals
# #
return_deletes
#
Indicates whether cells pending delete are returned
# #
revs
#
Specifies max number of revisions of cells to return
# #
row_limit
#
Specifies max number of rows to return
# #
start_time
#
Specifies start time in nanoseconds since epoch for cells to # return
# #
end_time
#
Specifies end time in nanoseconds since epoch for cells to return
# #
columns
#
Specifies the names of the columns to return
#
class ScanSpec include ::Thrift::Struct ROW_INTERVALS = 1 CELL_INTERVALS = 2 RETURN_DELETES = 3 REVS = 4 ROW_LIMIT = 5 START_TIME = 6 END_TIME = 7 COLUMNS = 8 Thrift::Struct.field_accessor self, :row_intervals, :cell_intervals, :return_deletes, :revs, :row_limit, :start_time, :end_time, :columns FIELDS = { ROW_INTERVALS => {:type => Thrift::Types::LIST, :name => 'row_intervals', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::RowInterval}, :optional => true}, CELL_INTERVALS => {:type => Thrift::Types::LIST, :name => 'cell_intervals', :element => {:type => Thrift::Types::STRUCT, :class => Hypertable::ThriftGen::CellInterval}, :optional => true}, RETURN_DELETES => {:type => Thrift::Types::BOOL, :name => 'return_deletes', :default => false, :optional => true}, REVS => {:type => Thrift::Types::I32, :name => 'revs', :default => 0, :optional => true}, ROW_LIMIT => {:type => Thrift::Types::I32, :name => 'row_limit', :default => 0, :optional => true}, START_TIME => {:type => Thrift::Types::I64, :name => 'start_time', :optional => true}, END_TIME => {:type => Thrift::Types::I64, :name => 'end_time', :optional => true}, COLUMNS => {:type => Thrift::Types::LIST, :name => 'columns', :element => {:type => Thrift::Types::STRING}, :optional => true} } def struct_fields; FIELDS; end def validate end end # Defines a table cell # #
#
row_key
#
Specifies the row key. Note, it cannot contain null characters. # If a row key is not specified in a return cell, it's assumed to # be the same as the previous cell
# #
column_family
#
Specifies the column family
# #
column_qualifier
#
Specifies the column qualifier. A column family must be specified.
# #
value
#
Value of a cell. Currently a sequence of uninterpreted bytes.
# #
timestamp
#
Nanoseconds since epoch for the cell
# #
revision
#
A 64-bit revision number for the cell
# #
flag
#
A 16-bit integer indicating the state of the cell
#
class Cell include ::Thrift::Struct ROW_KEY = 1 COLUMN_FAMILY = 2 COLUMN_QUALIFIER = 3 VALUE = 4 TIMESTAMP = 5 REVISION = 6 FLAG = 7 Thrift::Struct.field_accessor self, :row_key, :column_family, :column_qualifier, :value, :timestamp, :revision, :flag FIELDS = { ROW_KEY => {:type => Thrift::Types::STRING, :name => 'row_key', :optional => true}, COLUMN_FAMILY => {:type => Thrift::Types::STRING, :name => 'column_family', :optional => true}, COLUMN_QUALIFIER => {:type => Thrift::Types::STRING, :name => 'column_qualifier', :optional => true}, VALUE => {:type => Thrift::Types::STRING, :name => 'value', :optional => true}, TIMESTAMP => {:type => Thrift::Types::I64, :name => 'timestamp', :optional => true}, REVISION => {:type => Thrift::Types::I64, :name => 'revision', :optional => true}, FLAG => {:type => Thrift::Types::I16, :name => 'flag', :default => 255, :optional => true} } def struct_fields; FIELDS; end def validate end end # Exception for thrift clients. # #
#
code
Internal use (defined in src/cc/Common/Error.h)
#
what
A message about the exception
#
# # Note: some languages (like php) don't have adequate namespace, so Exception # would conflict with language builtins. class ClientException < Thrift::Exception include ::Thrift::Struct CODE = 1 WHAT = 2 Thrift::Struct.field_accessor self, :code, :what FIELDS = { CODE => {:type => Thrift::Types::I32, :name => 'code'}, WHAT => {:type => Thrift::Types::STRING, :name => 'what'} } def struct_fields; FIELDS; end def validate end end end end