def unique_key_transformation(self, value): if get_attr_name(UniqueKeyTransformation, value): self._unique_key_transformation = value else: raise TypeError( "unique_key_transformation must be of type UniqueKeyTransformation" )
def __repr__(self): return "[%s]" % ", ".join("%s %s=%s" % ( self._row_metadata.get_column(i).name, get_attr_name(SqlColumnType, self._row_metadata.get_column(i).type), self.get_object_with_index(i), ) for i in range(self._row_metadata.column_count))
def write_data(self, output): output.write_object(self._internal_predicate) output.write_object(self.comparator) output.write_int(self.page) output.write_int(self._page_size) output.write_string(get_attr_name(IterationType, self.iteration_type)) output.write_int(len(self.anchor_list)) for nearest_page, (anchor_key, anchor_value) in self.anchor_list: output.write_int(nearest_page) output.write_object(anchor_key) output.write_object(anchor_value)
def __repr__(self): return ( "EntryEvent(key=%s, value=%s, old_value=%s, merging_value=%s, event_type=%s, uuid=%s, " "number_of_affected_entries=%s)" % ( self.key, self.value, self.old_value, self.merging_value, get_attr_name(EntryEventType, self.event_type), self.uuid, self.number_of_affected_entries, ))
def __repr__(self): return "[%s]" % ", ".join( "%s %s" % (column.name, get_attr_name(SqlColumnType, column.type)) for column in self._columns)
def __repr__(self): return "%s %s" % (self.name, get_attr_name(SqlColumnType, self.type))
def default_int_type(self, value): if get_attr_name(IntType, value): self._default_int_type = value else: raise TypeError("default_int_type must be of type IntType")
def reconnect_mode(self, value): if get_attr_name(ReconnectMode, value): self._reconnect_mode = value else: raise TypeError("reconnect_mode must be a type of ReconnectMode")
def ssl_protocol(self, value): if get_attr_name(SSLProtocol, value): self._ssl_protocol = value else: raise TypeError("ssl_protocol must be of type SSLProtocol")
def type(self, value): if get_attr_name(IndexType, value): self._type = value else: raise TypeError("type must be of type IndexType")
def unique_key(self, value): if get_attr_name(QueryConstants, value): self._unique_key = value else: raise TypeError("unique_key must be of type QueryConstants")
def eviction_policy(self, value): if get_attr_name(EvictionPolicy, value): self._eviction_policy = value else: raise TypeError("eviction_policy must be of type EvictionPolicy")
def in_memory_format(self, value): if get_attr_name(InMemoryFormat, value): self._in_memory_format = value else: raise TypeError( "in_memory_format must be of the type InMemoryFormat")