def is_consistent(self): if not UnaryOp.is_consistent(self): return False if not self._cptheory.is_consistent(): LOG.error('Operator %s not consistent', self) return False return True
def is_consistent(self): if not UnaryOp.is_consistent(self): return False if self._operand.get_result_type() != STREAM_SYM: LOG.error('Operator %s not consistent', self) return False return True
def __init__(self, operand, cptheory, pref_alg, topk=-1): UnaryOp.__init__(self, operand) self._operator_name = 'BEST' self._operator_str = 'BEST' if topk != -1: self._operator_name = 'TOPK' self._operator_str = 'TOPK[' + str(topk) + ']' # CP-Theory self._cptheory = cptheory # Top-k (default is -1, the operator returns just dominant records) self._top = topk # Best algorithm to be used self._pref_alg = pref_alg # Update data (level, ancestor) # Used in some algorithms self._update_data_level = None
def __init__(self, operand, bound, slide=1): UnaryOp.__init__(self, operand) # Window bound and slide self._bound = bound self._slide = slide self._operator_name = 'WIN' self._operator_str = \ 'WIN[{b},{s}]'.format(b=self._bound, s=self._slide) # List of records for each timestamp self._history_dict = {} # Valid intervals (start and end) for each timestamp self._start_end_dict = {} # Deleted records in current instant self._deleted_list = [] # Inserted records in current instant self._inserted_list = [] self._result_type = TABLE_SYM
def is_consistent(self): # Must be over another sequence operator if not UnaryOp.is_consistent(self): return False if not isinstance(self._operand, GenericSeqOp): LOG.error('Operator %s not consistent', self) return False return True
def is_consistent(self): if not UnaryOp.is_consistent(self): return False if self._operand.get_result_type() != STREAM_SYM \ or None in self._identifier_attribute_list: LOG.error('Operator %s not consistent', self) return False return True
def is_consistent(self): if not UnaryOp.is_consistent(self): return False if not isinstance(self._operand, GenericSeqOp): return False if not self._tcptheory.is_consistent(): LOG.error('Operator %s not consistent', self) return False return True
def __init__(self, operand): UnaryOp.__init__(self, operand) self._result_type = STREAM_SYM
def __init__(self, operand): UnaryOp.__init__(self, operand) self._sequence_list = []