Class: BigRecordDriver::BigRecordServer

Inherits:
Object
  • Object
show all
Defined in:
lib/big_record_driver/bigrecord_server.rb

Direct Known Subclasses

CassandraServer, HbaseServer

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



71
72
73
74
75
# File 'lib/big_record_driver/bigrecord_server.rb', line 71

def method_missing(method, *args)
  super
rescue NoMethodError
  raise NoMethodError, "undefined method `#{method}' for \"#{self}\":#{self.class}"
end

Instance Method Details

#configure(config = {}) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/big_record_driver/bigrecord_server.rb', line 23

def configure(config = {})
  raise NotImplementedError
end

#create_table(table_name, column_descriptors) ⇒ Object

Raises:

  • (NotImplementedError)


47
48
49
# File 'lib/big_record_driver/bigrecord_server.rb', line 47

def create_table(table_name, column_descriptors)
  raise NotImplementedError
end

#delete(table_name, row) ⇒ Object

Raises:

  • (NotImplementedError)


43
44
45
# File 'lib/big_record_driver/bigrecord_server.rb', line 43

def delete(table_name, row)
  raise NotImplementedError
end

#drop_table(table_name) ⇒ Object

Raises:

  • (NotImplementedError)


51
52
53
# File 'lib/big_record_driver/bigrecord_server.rb', line 51

def drop_table(table_name)
  raise NotImplementedError
end

#get(table_name, row, column, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/big_record_driver/bigrecord_server.rb', line 31

def get(table_name, row, column, options={})
  raise NotImplementedError
end

#get_columns(table_name, row, columns, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/big_record_driver/bigrecord_server.rb', line 35

def get_columns(table_name, row, columns, options={})
  raise NotImplementedError
end

#get_consecutive_rows(table_name, start_row, limit, columns, stop_row = nil) ⇒ Object

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/big_record_driver/bigrecord_server.rb', line 39

def get_consecutive_rows(table_name, start_row, limit, columns, stop_row = nil)
  raise NotImplementedError
end

#pingObject

Raises:

  • (NotImplementedError)


59
60
61
# File 'lib/big_record_driver/bigrecord_server.rb', line 59

def ping
  raise NotImplementedError
end

#respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/big_record_driver/bigrecord_server.rb', line 77

def respond_to?(method)
  super
end

#table_exists?(table_name) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


63
64
65
# File 'lib/big_record_driver/bigrecord_server.rb', line 63

def table_exists?(table_name)
  raise NotImplementedError
end

#table_namesObject

Raises:

  • (NotImplementedError)


67
68
69
# File 'lib/big_record_driver/bigrecord_server.rb', line 67

def table_names
  raise NotImplementedError
end

#truncate_table(table_name) ⇒ Object

Raises:

  • (NotImplementedError)


55
56
57
# File 'lib/big_record_driver/bigrecord_server.rb', line 55

def truncate_table(table_name)
  raise NotImplementedError
end

#update(table_name, row, values, timestamp = nil) ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/big_record_driver/bigrecord_server.rb', line 27

def update(table_name, row, values, timestamp=nil)
  raise NotImplementedError
end