6 Şubat 2023 Pazartesi

Compact Serialization

Giriş
Hazelcast Compact Serialization sayfasına bakılabilir. Açıklaması şöyle
It doesn't require you to add something like a class definition. You add serializers like you add a Portable factory, and versioning and schema distribution are handled for you
Açıklaması şöyle
Compact serialization is the brand-new serialization mechanism built to have a small size on the serialized form yet allows fast data access for different query patterns. It is easy to use, language-independent, and performant. 
Portable Serialization vs Compact Serialization
Açıklaması şöyle
It's worth noting that both Portable Serialization and Compact Serialization serve different use cases. Portable Serialization provides more flexibility, versioning support, and language interoperability, while Compact Serialization excels in minimizing the serialized data size and achieving high performance.
Zero Configuration
Açıklaması şöyle
Compact serialization supports zero-configuration. In that case, it uses the fully qualified class name as its type name.
Custom Configuration

CompactSerializer Kalıtım
CompactSerializer 
  JavaRecordSerializer
  ReflectiveCompactSerializer
  ObjectIdCompactSerializer    

CompactReader Arayüzü
CompactReader kalıtımı şöyle
CompactReader 
  DefaultCompactReader



CompactWriter Arayüzü
Şu satırı dahil ederiz
import com.hazelcast.nio.serialization.compact.CompactWriter;
CompactWriter kalıtımı şöyle
CompactWriter
  DefaultCompactWriter
  SchemaWriter

writeCompact metodu
İmzası şöyle
<T> void writeCompact(String fieldName, T value);


Hiç yorum yok:

Yorum Gönder

THIRD-PARTY.txt Dosyası

Kullanılan harici kütüphanelerin sürümleri bu dosyada Dosyanın yolu şöyle hazelcast/licenses/THIRD-PARTY.txt