source: proiecte/HadoopJUnit/hadoop-0.20.1/src/contrib/thriftfs/gen-rb/hadoopfs_types.rb @ 176

Last change on this file since 176 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1#
2# Autogenerated by Thrift
3#
4# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5#
6
7require 'thrift/protocol'
8
9class ThriftHandle
10  include Thrift::Struct
11  Thrift::Struct.field_accessor self, :id
12  FIELDS = {
13    -1 => {:type => Thrift::Types::I64, :name => 'id'}
14  }
15end
16
17class Pathname
18  include Thrift::Struct
19  Thrift::Struct.field_accessor self, :pathname
20  FIELDS = {
21    -1 => {:type => Thrift::Types::STRING, :name => 'pathname'}
22  }
23end
24
25class FileStatus
26  include Thrift::Struct
27  Thrift::Struct.field_accessor self, :path, :length, :isdir, :block_replication, :blocksize, :modification_time, :permission, :owner, :group
28  FIELDS = {
29    1 => {:type => Thrift::Types::STRING, :name => 'path'},
30    2 => {:type => Thrift::Types::I64, :name => 'length'},
31    3 => {:type => Thrift::Types::BOOL, :name => 'isdir'},
32    4 => {:type => Thrift::Types::I16, :name => 'block_replication'},
33    5 => {:type => Thrift::Types::I64, :name => 'blocksize'},
34    6 => {:type => Thrift::Types::I64, :name => 'modification_time'},
35    7 => {:type => Thrift::Types::STRING, :name => 'permission'},
36    8 => {:type => Thrift::Types::STRING, :name => 'owner'},
37    9 => {:type => Thrift::Types::STRING, :name => 'group'}
38  }
39end
40
41class BlockLocation
42  include Thrift::Struct
43  Thrift::Struct.field_accessor self, :hosts, :names, :offset, :length
44  FIELDS = {
45    1 => {:type => Thrift::Types::LIST, :name => 'hosts', :element => {:type => Thrift::Types::STRING}},
46    2 => {:type => Thrift::Types::LIST, :name => 'names', :element => {:type => Thrift::Types::STRING}},
47    3 => {:type => Thrift::Types::I64, :name => 'offset'},
48    4 => {:type => Thrift::Types::I64, :name => 'length'}
49  }
50end
51
52class MalformedInputException < StandardError
53  include Thrift::Struct
54  def initialize(message=nil)
55    super()
56    self.message = message
57  end
58
59  Thrift::Struct.field_accessor self, :message
60  FIELDS = {
61    -1 => {:type => Thrift::Types::STRING, :name => 'message'}
62  }
63end
64
65class ThriftIOException < StandardError
66  include Thrift::Struct
67  def initialize(message=nil)
68    super()
69    self.message = message
70  end
71
72  Thrift::Struct.field_accessor self, :message
73  FIELDS = {
74    -1 => {:type => Thrift::Types::STRING, :name => 'message'}
75  }
76end
77
Note: See TracBrowser for help on using the repository browser.