Class: Coopy::TableComparisonState

Inherits:
Object
  • Object
show all
Defined in:
lib/coopy/table_comparison_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTableComparisonState

Returns a new instance of TableComparisonState.



19
20
21
# File 'lib/coopy/table_comparison_state.rb', line 19

def initialize
  reset
end

Instance Attribute Details

#aObject

Table



5
6
7
# File 'lib/coopy/table_comparison_state.rb', line 5

def a
  @a
end

#bObject

Table



6
7
8
# File 'lib/coopy/table_comparison_state.rb', line 6

def b
  @b
end

#completedObject

boolean



8
9
10
# File 'lib/coopy/table_comparison_state.rb', line 8

def completed
  @completed
end

#has_same_columnsObject

Do tables have blatantly same set of columns?



16
17
18
# File 'lib/coopy/table_comparison_state.rb', line 16

def has_same_columns
  @has_same_columns
end

#has_same_columns_knownObject

boolean



17
18
19
# File 'lib/coopy/table_comparison_state.rb', line 17

def has_same_columns_known
  @has_same_columns_known
end

#is_equalObject

Are tables trivially equal?



12
13
14
# File 'lib/coopy/table_comparison_state.rb', line 12

def is_equal
  @is_equal
end

#is_equal_knownObject

boolean



13
14
15
# File 'lib/coopy/table_comparison_state.rb', line 13

def is_equal_known
  @is_equal_known
end

#pObject

Table



4
5
6
# File 'lib/coopy/table_comparison_state.rb', line 4

def p
  @p
end

#run_to_completionObject

boolean



9
10
11
# File 'lib/coopy/table_comparison_state.rb', line 9

def run_to_completion
  @run_to_completion
end

Instance Method Details

#resetObject



23
24
25
26
27
28
29
30
# File 'lib/coopy/table_comparison_state.rb', line 23

def reset
  @completed = false
  @run_to_completion = true
  @is_equal_known = false
  @is_equal = false
  @has_same_columns = false
  @has_same_columns_known = false
end