Skip to content

Commit d6090fc

Browse files
authored
Introduce minor fixes before 5.2.0 (#620)
- Updated the Hazelcast version used in README and examples to 5.2 - Renamed CompactSerializableClass to CompactSerializableType to be more consistent with the other type-var definitions.
1 parent 15c77bb commit d6090fc

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ images <https://hub.docker.com/r/hazelcast/hazelcast/>`__.
4949

5050
.. code:: bash
5151
52-
docker run -p 5701:5701 hazelcast/hazelcast:5.1
52+
docker run -p 5701:5701 hazelcast/hazelcast:5.2
5353
5454
You can also use our ZIP or TAR
5555
`distributions <https://hazelcast.com/open-source-projects/downloads/>`__.

docs/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ There are following options to start a Hazelcast cluster easily:
4848

4949
.. code:: bash
5050
51-
docker run -p 5701:5701 hazelcast/hazelcast:5.1
51+
docker run -p 5701:5701 hazelcast/hazelcast:5.2
5252
5353
- You can use `Hazelcast CLI
5454
<https://docs.hazelcast.com/hazelcast/latest/getting-started/install-hazelcast#using-a-package-manager>`__.

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ How to try these examples
1414
* If not, you can use our official Docker images to start a member.
1515

1616
```bash
17-
docker run -p 5701:5701 hazelcast/hazelcast:5.1
17+
docker run -p 5701:5701 hazelcast/hazelcast:5.2
1818
```
1919
To see the other ways to start Hazelcast members, see
2020
[Working with Hazelcast Clusters](https://hazelcast.readthedocs.io/en/stable/getting_started.html#working-with-hazelcast-clusters)

examples/jupyter-notebooks/Hazelcast Python Client SQL Support with Hazelcast Viridian Notebook.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
"cell_type": "markdown",
255255
"source": [
256256
"Here is the critical part. We will insert the data from TMDB API to our Hazelcast Cluster. You can do this in two way. Firstly, you can get a map by calling `hazelcast.get_map()` method and use `put()`, `remove()` and other methods of the returned distributed map object. Secondly you can create a mapping for your data schema using SQL syntax and it directly creates both map and mapping. We preferred second way to show SQL functions in this notebook. \n",
257-
"</br></br>In the mapping query, you should sepicfy the fields of data schema. It can be both primitive types or complex types. Using this mapping, we will execute SQL queries on our maps. You can select any column you want to map; not all fields are mandatory. For more information about mapping, you can visit https://docs.hazelcast.com/hazelcast/5.1/sql/mapping-to-maps\n",
257+
"</br></br>In the mapping query, you should sepicfy the fields of data schema. It can be both primitive types or complex types. Using this mapping, we will execute SQL queries on our maps. You can select any column you want to map; not all fields are mandatory. For more information about mapping, you can visit https://docs.hazelcast.com/hazelcast/5.2/sql/mapping-to-maps\n",
258258
"</br></br>\n",
259259
"Now, execute following cells to create mappings to execute SQL queries against your data."
260260
],

examples/paging-predicate/member-with-comparator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>com.hazelcast</groupId>
1919
<artifactId>hazelcast</artifactId>
20-
<version>5.1.3</version>
20+
<version>5.2.3</version>
2121
</dependency>
2222
</dependencies>
2323

hazelcast/serialization/api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,22 +2594,22 @@ def write_array_of_compact(
25942594
"""
25952595

25962596

2597-
CompactSerializableClass = typing.TypeVar("CompactSerializableClass")
2597+
CompactSerializableType = typing.TypeVar("CompactSerializableType")
25982598
"""Type of the Compact serializable classes."""
25992599

26002600

2601-
class CompactSerializer(typing.Generic[CompactSerializableClass], abc.ABC):
2601+
class CompactSerializer(typing.Generic[CompactSerializableType], abc.ABC):
26022602
"""Defines the contract of the serializers used for Compact serialization.
26032603
26042604
After defining a serializer for the objects of the class
2605-
:const:`CompactSerializableClass`, the serializer can be registered to the
2605+
:const:`CompactSerializableType`, the serializer can be registered to the
26062606
:attr:`hazelcast.config.Config.compact_serializers`.
26072607
26082608
:func:`write` and :func:`read` methods must be consistent with each other.
26092609
"""
26102610

26112611
@abc.abstractmethod
2612-
def read(self, reader: CompactReader) -> CompactSerializableClass:
2612+
def read(self, reader: CompactReader) -> CompactSerializableType:
26132613
"""Deserializes the object from the reader.
26142614
26152615
Args:
@@ -2624,7 +2624,7 @@ def read(self, reader: CompactReader) -> CompactSerializableClass:
26242624
"""
26252625

26262626
@abc.abstractmethod
2627-
def write(self, writer: CompactWriter, obj: CompactSerializableClass) -> None:
2627+
def write(self, writer: CompactWriter, obj: CompactSerializableType) -> None:
26282628
"""Serializes the object to writer.
26292629
26302630
Args:
@@ -2637,7 +2637,7 @@ def write(self, writer: CompactWriter, obj: CompactSerializableClass) -> None:
26372637
"""
26382638

26392639
@abc.abstractmethod
2640-
def get_class(self) -> typing.Type[CompactSerializableClass]:
2640+
def get_class(self) -> typing.Type[CompactSerializableType]:
26412641
"""Returns the class that this serializer reads or writes.
26422642
26432643
Returns:
@@ -2647,7 +2647,7 @@ def get_class(self) -> typing.Type[CompactSerializableClass]:
26472647
@abc.abstractmethod
26482648
def get_type_name(self) -> str:
26492649
"""Returns the unique type name associated with
2650-
:const`CompactSerializableClass`.
2650+
:const`CompactSerializableType`.
26512651
26522652
If the class is ever evolved by adding or removing fields,
26532653
the type name for the evolved serializers must be the same

0 commit comments

Comments
 (0)