def __init__(self, state): AbstractCostComponent.__init__(self, state) self.debug = False self.buffers = [] # LOG.info("Window size: %s", self.state.window_size) for i in xrange(self.state.max_num_nodes): lru = FastLRUBufferWithWindow(self.state.window_size) self.buffers.append(lru) self.err_ctr = 0 self.total_op_contents = 0 self.col_cost_map = {} self.child_collections = set() # Map from parent to its children and grandchildren # For instance, if A is embedded into B and B is embedded into C # the map will be key: C, value: B, A self.parent_to_children_map = {} # index key insertion penalty: index -> largest key value self.index_key_insertion_penalty_map = {} self.total_index_insertion_penalty = 0 # This is only used for test self.no_index_size_estimation = True self.no_index_insertion_penalty = False
def __init__(self, state): AbstractCostComponent.__init__(self, state) self.debug = False self.buffers = [ ] #LOG.info("Window size: %s", self.state.window_size) for i in xrange(self.state.num_nodes): lru = FastLRUBufferWithWindow(self.state.window_size) self.buffers.append(lru) self.err_ctr = 0 self.total_op_contents = 0 self.col_cost_map = { } self.child_collections = set() # Map from parent to its children and grandchildren # For instance, if A is embedded into B and B is embedded into C # the map will be key: C, value: B, A self.parent_to_children_map = { } # index key insertion penalty: index -> largest key value self.index_key_insertion_penalty_map = { } self.total_index_insertion_penalty = 0 # This is only used for test self.no_index_size_estimation = True self.no_index_insertion_penalty = False
def __init__(self, state): AbstractCostComponent.__init__(self, state) # COL_NAME -> [OP_COUNT, MSG_COUNT] self.cache = { } self.lastDesign = None self.debug = LOG.isEnabledFor(logging.DEBUG)
def __init__(self, state): AbstractCostComponent.__init__(self, state) # COL_NAME -> [OP_COUNT, MSG_COUNT] self.cache = {} self.lastDesign = None self.debug = LOG.isEnabledFor(logging.DEBUG)
def __init__(self, state): AbstractCostComponent.__init__(self, state) self.debug = LOG.isEnabledFor(logging.DEBUG) # Keep track of how many times that we accessed each node self.nodeCounts = Histogram() self.workload_segments = [ ] # Pre-split the workload into separate intervals self.splitWorkload()