hbase-thrift 0.20.5
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +202 -0
- data/README.textile +21 -0
- data/lib/Hbase.thrift +562 -0
- data/lib/gen-rb/hbase.rb +2213 -0
- data/lib/gen-rb/hbase_constants.rb +16 -0
- data/lib/gen-rb/hbase_types.rb +226 -0
- data/lib/hbase-thrift.rb +1 -0
- data/lib/hbase_thrift.rb +7 -0
- metadata +91 -0
@@ -0,0 +1,226 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
|
8
|
+
module Apache
|
9
|
+
module Hadoop
|
10
|
+
module Hbase
|
11
|
+
module Thrift
|
12
|
+
# TCell - Used to transport a cell value (byte[]) and the timestamp it was
|
13
|
+
# stored with together as a result for get and getRow methods. This promotes
|
14
|
+
# the timestamp of a cell to a first-class value, making it easy to take
|
15
|
+
# note of temporal data. Cell is used all the way from HStore up to HTable.
|
16
|
+
class TCell
|
17
|
+
include ::Thrift::Struct
|
18
|
+
VALUE = 1
|
19
|
+
TIMESTAMP = 2
|
20
|
+
|
21
|
+
::Thrift::Struct.field_accessor self, :value, :timestamp
|
22
|
+
FIELDS = {
|
23
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
|
24
|
+
TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'}
|
25
|
+
}
|
26
|
+
|
27
|
+
def struct_fields; FIELDS; end
|
28
|
+
|
29
|
+
def validate
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
# An HColumnDescriptor contains information about a column family
|
35
|
+
# such as the number of versions, compression settings, etc. It is
|
36
|
+
# used as input when creating a table or adding a column.
|
37
|
+
class ColumnDescriptor
|
38
|
+
include ::Thrift::Struct
|
39
|
+
NAME = 1
|
40
|
+
MAXVERSIONS = 2
|
41
|
+
COMPRESSION = 3
|
42
|
+
INMEMORY = 4
|
43
|
+
BLOOMFILTERTYPE = 5
|
44
|
+
BLOOMFILTERVECTORSIZE = 6
|
45
|
+
BLOOMFILTERNBHASHES = 7
|
46
|
+
BLOCKCACHEENABLED = 8
|
47
|
+
TIMETOLIVE = 9
|
48
|
+
|
49
|
+
::Thrift::Struct.field_accessor self, :name, :maxVersions, :compression, :inMemory, :bloomFilterType, :bloomFilterVectorSize, :bloomFilterNbHashes, :blockCacheEnabled, :timeToLive
|
50
|
+
FIELDS = {
|
51
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
52
|
+
MAXVERSIONS => {:type => ::Thrift::Types::I32, :name => 'maxVersions', :default => 3},
|
53
|
+
COMPRESSION => {:type => ::Thrift::Types::STRING, :name => 'compression', :default => %q"NONE"},
|
54
|
+
INMEMORY => {:type => ::Thrift::Types::BOOL, :name => 'inMemory', :default => false},
|
55
|
+
BLOOMFILTERTYPE => {:type => ::Thrift::Types::STRING, :name => 'bloomFilterType', :default => %q"NONE"},
|
56
|
+
BLOOMFILTERVECTORSIZE => {:type => ::Thrift::Types::I32, :name => 'bloomFilterVectorSize', :default => 0},
|
57
|
+
BLOOMFILTERNBHASHES => {:type => ::Thrift::Types::I32, :name => 'bloomFilterNbHashes', :default => 0},
|
58
|
+
BLOCKCACHEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'blockCacheEnabled', :default => false},
|
59
|
+
TIMETOLIVE => {:type => ::Thrift::Types::I32, :name => 'timeToLive', :default => -1}
|
60
|
+
}
|
61
|
+
|
62
|
+
def struct_fields; FIELDS; end
|
63
|
+
|
64
|
+
def validate
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
# A TRegionInfo contains information about an HTable region.
|
70
|
+
class TRegionInfo
|
71
|
+
include ::Thrift::Struct
|
72
|
+
STARTKEY = 1
|
73
|
+
ENDKEY = 2
|
74
|
+
ID = 3
|
75
|
+
NAME = 4
|
76
|
+
VERSION = 5
|
77
|
+
|
78
|
+
::Thrift::Struct.field_accessor self, :startKey, :endKey, :id, :name, :version
|
79
|
+
FIELDS = {
|
80
|
+
STARTKEY => {:type => ::Thrift::Types::STRING, :name => 'startKey'},
|
81
|
+
ENDKEY => {:type => ::Thrift::Types::STRING, :name => 'endKey'},
|
82
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
83
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
84
|
+
VERSION => {:type => ::Thrift::Types::BYTE, :name => 'version'}
|
85
|
+
}
|
86
|
+
|
87
|
+
def struct_fields; FIELDS; end
|
88
|
+
|
89
|
+
def validate
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
# A Mutation object is used to either update or delete a column-value.
|
95
|
+
class Mutation
|
96
|
+
include ::Thrift::Struct
|
97
|
+
ISDELETE = 1
|
98
|
+
COLUMN = 2
|
99
|
+
VALUE = 3
|
100
|
+
|
101
|
+
::Thrift::Struct.field_accessor self, :isDelete, :column, :value
|
102
|
+
FIELDS = {
|
103
|
+
ISDELETE => {:type => ::Thrift::Types::BOOL, :name => 'isDelete', :default => false},
|
104
|
+
COLUMN => {:type => ::Thrift::Types::STRING, :name => 'column'},
|
105
|
+
VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
|
106
|
+
}
|
107
|
+
|
108
|
+
def struct_fields; FIELDS; end
|
109
|
+
|
110
|
+
def validate
|
111
|
+
end
|
112
|
+
|
113
|
+
end
|
114
|
+
|
115
|
+
# A BatchMutation object is used to apply a number of Mutations to a single row.
|
116
|
+
class BatchMutation
|
117
|
+
include ::Thrift::Struct
|
118
|
+
ROW = 1
|
119
|
+
MUTATIONS = 2
|
120
|
+
|
121
|
+
::Thrift::Struct.field_accessor self, :row, :mutations
|
122
|
+
FIELDS = {
|
123
|
+
ROW => {:type => ::Thrift::Types::STRING, :name => 'row'},
|
124
|
+
MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::Mutation}}
|
125
|
+
}
|
126
|
+
|
127
|
+
def struct_fields; FIELDS; end
|
128
|
+
|
129
|
+
def validate
|
130
|
+
end
|
131
|
+
|
132
|
+
end
|
133
|
+
|
134
|
+
# Holds row name and then a map of columns to cells.
|
135
|
+
class TRowResult
|
136
|
+
include ::Thrift::Struct
|
137
|
+
ROW = 1
|
138
|
+
COLUMNS = 2
|
139
|
+
|
140
|
+
::Thrift::Struct.field_accessor self, :row, :columns
|
141
|
+
FIELDS = {
|
142
|
+
ROW => {:type => ::Thrift::Types::STRING, :name => 'row'},
|
143
|
+
COLUMNS => {:type => ::Thrift::Types::MAP, :name => 'columns', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => Apache::Hadoop::Hbase::Thrift::TCell}}
|
144
|
+
}
|
145
|
+
|
146
|
+
def struct_fields; FIELDS; end
|
147
|
+
|
148
|
+
def validate
|
149
|
+
end
|
150
|
+
|
151
|
+
end
|
152
|
+
|
153
|
+
# An IOError exception signals that an error occurred communicating
|
154
|
+
# to the Hbase master or an Hbase region server. Also used to return
|
155
|
+
# more general Hbase error conditions.
|
156
|
+
class IOError < ::Thrift::Exception
|
157
|
+
include ::Thrift::Struct
|
158
|
+
def initialize(message=nil)
|
159
|
+
super()
|
160
|
+
self.message = message
|
161
|
+
end
|
162
|
+
|
163
|
+
MESSAGE = 1
|
164
|
+
|
165
|
+
::Thrift::Struct.field_accessor self, :message
|
166
|
+
FIELDS = {
|
167
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
168
|
+
}
|
169
|
+
|
170
|
+
def struct_fields; FIELDS; end
|
171
|
+
|
172
|
+
def validate
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
|
177
|
+
# An IllegalArgument exception indicates an illegal or invalid
|
178
|
+
# argument was passed into a procedure.
|
179
|
+
class IllegalArgument < ::Thrift::Exception
|
180
|
+
include ::Thrift::Struct
|
181
|
+
def initialize(message=nil)
|
182
|
+
super()
|
183
|
+
self.message = message
|
184
|
+
end
|
185
|
+
|
186
|
+
MESSAGE = 1
|
187
|
+
|
188
|
+
::Thrift::Struct.field_accessor self, :message
|
189
|
+
FIELDS = {
|
190
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
191
|
+
}
|
192
|
+
|
193
|
+
def struct_fields; FIELDS; end
|
194
|
+
|
195
|
+
def validate
|
196
|
+
end
|
197
|
+
|
198
|
+
end
|
199
|
+
|
200
|
+
# An AlreadyExists exceptions signals that a table with the specified
|
201
|
+
# name already exists
|
202
|
+
class AlreadyExists < ::Thrift::Exception
|
203
|
+
include ::Thrift::Struct
|
204
|
+
def initialize(message=nil)
|
205
|
+
super()
|
206
|
+
self.message = message
|
207
|
+
end
|
208
|
+
|
209
|
+
MESSAGE = 1
|
210
|
+
|
211
|
+
::Thrift::Struct.field_accessor self, :message
|
212
|
+
FIELDS = {
|
213
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
214
|
+
}
|
215
|
+
|
216
|
+
def struct_fields; FIELDS; end
|
217
|
+
|
218
|
+
def validate
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
data/lib/hbase-thrift.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/hbase_thrift"
|
data/lib/hbase_thrift.rb
ADDED
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hbase-thrift
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 69
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 20
|
9
|
+
- 5
|
10
|
+
version: 0.20.5
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Andrew O'Brien
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-07-13 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rspec
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
description: The barebones Thrift interface for HBase allowing anyone to create higher level HBase libraries.
|
36
|
+
email:
|
37
|
+
- obrien.andrew@gmail.com
|
38
|
+
executables: []
|
39
|
+
|
40
|
+
extensions: []
|
41
|
+
|
42
|
+
extra_rdoc_files: []
|
43
|
+
|
44
|
+
files:
|
45
|
+
- lib/gen-rb/hbase.rb
|
46
|
+
- lib/gen-rb/hbase_constants.rb
|
47
|
+
- lib/gen-rb/hbase_types.rb
|
48
|
+
- lib/hbase-thrift.rb
|
49
|
+
- lib/Hbase.thrift
|
50
|
+
- lib/hbase_thrift.rb
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.textile
|
53
|
+
has_rdoc: true
|
54
|
+
homepage: http://github.com/AndrewO/hbase-thrift
|
55
|
+
licenses: []
|
56
|
+
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
- lib/gen-rb
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 23
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 3
|
81
|
+
- 6
|
82
|
+
version: 1.3.6
|
83
|
+
requirements: []
|
84
|
+
|
85
|
+
rubyforge_project: hbase-thrift
|
86
|
+
rubygems_version: 1.3.7
|
87
|
+
signing_key:
|
88
|
+
specification_version: 3
|
89
|
+
summary: Just the thrift interface for HBase.
|
90
|
+
test_files: []
|
91
|
+
|