25
25
class CloudQC (NativeQueryCompiler ):
26
26
"Represents a cloud-hosted query compiler"
27
27
28
- def __init__ (self , pandas_frame ):
29
- self ._modin_frame = pandas_frame
30
- super ().__init__ (pandas_frame )
31
-
32
28
def qc_engine_switch_cost (self , other_qc_cls ):
33
29
return {
34
30
CloudQC : QCCoercionCost .COST_ZERO ,
@@ -42,10 +38,6 @@ def qc_engine_switch_cost(self, other_qc_cls):
42
38
class ClusterQC (NativeQueryCompiler ):
43
39
"Represents a local network cluster query compiler"
44
40
45
- def __init__ (self , pandas_frame ):
46
- self ._modin_frame = pandas_frame
47
- super ().__init__ (pandas_frame )
48
-
49
41
def qc_engine_switch_cost (self , other_qc_cls ):
50
42
return {
51
43
CloudQC : QCCoercionCost .COST_MEDIUM ,
@@ -59,10 +51,6 @@ def qc_engine_switch_cost(self, other_qc_cls):
59
51
class LocalMachineQC (NativeQueryCompiler ):
60
52
"Represents a local machine query compiler"
61
53
62
- def __init__ (self , pandas_frame ):
63
- self ._modin_frame = pandas_frame
64
- super ().__init__ (pandas_frame )
65
-
66
54
def qc_engine_switch_cost (self , other_qc_cls ):
67
55
return {
68
56
CloudQC : QCCoercionCost .COST_MEDIUM ,
@@ -75,10 +63,6 @@ def qc_engine_switch_cost(self, other_qc_cls):
75
63
class PicoQC (NativeQueryCompiler ):
76
64
"Represents a query compiler with very few resources"
77
65
78
- def __init__ (self , pandas_frame ):
79
- self ._modin_frame = pandas_frame
80
- super ().__init__ (pandas_frame )
81
-
82
66
def qc_engine_switch_cost (self , other_qc_cls ):
83
67
return {
84
68
CloudQC : QCCoercionCost .COST_LOW ,
@@ -91,10 +75,6 @@ def qc_engine_switch_cost(self, other_qc_cls):
91
75
class AdversarialQC (NativeQueryCompiler ):
92
76
"Represents a query compiler which returns non-sensical costs"
93
77
94
- def __init__ (self , pandas_frame ):
95
- self ._modin_frame = pandas_frame
96
- super ().__init__ (pandas_frame )
97
-
98
78
def qc_engine_switch_cost (self , other_qc_cls ):
99
79
return {
100
80
CloudQC : - 1000 ,
@@ -106,18 +86,10 @@ def qc_engine_switch_cost(self, other_qc_cls):
106
86
class DefaultQC (NativeQueryCompiler ):
107
87
"Represents a query compiler with no costing information"
108
88
109
- def __init__ (self , pandas_frame ):
110
- self ._modin_frame = pandas_frame
111
- super ().__init__ (pandas_frame )
112
-
113
89
114
90
class DefaultQC2 (NativeQueryCompiler ):
115
91
"Represents a query compiler with no costing information, but different."
116
92
117
- def __init__ (self , pandas_frame ):
118
- self ._modin_frame = pandas_frame
119
- super ().__init__ (pandas_frame )
120
-
121
93
122
94
@pytest .fixture ()
123
95
def cloud_df ():
0 commit comments