コード例 #1
0
 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"
         )
コード例 #2
0
ファイル: sql.py プロジェクト: yuce/hazelcast-python-client
 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))
コード例 #3
0
 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)
コード例 #4
0
 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,
         ))
コード例 #5
0
ファイル: sql.py プロジェクト: yuce/hazelcast-python-client
 def __repr__(self):
     return "[%s]" % ", ".join(
         "%s %s" % (column.name, get_attr_name(SqlColumnType, column.type))
         for column in self._columns)
コード例 #6
0
ファイル: sql.py プロジェクト: yuce/hazelcast-python-client
 def __repr__(self):
     return "%s %s" % (self.name, get_attr_name(SqlColumnType, self.type))
コード例 #7
0
 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")
コード例 #8
0
 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")
コード例 #9
0
 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")
コード例 #10
0
 def type(self, value):
     if get_attr_name(IndexType, value):
         self._type = value
     else:
         raise TypeError("type must be of type IndexType")
コード例 #11
0
 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")
コード例 #12
0
 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")
コード例 #13
0
 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")