Class BloomFilterConverter
java.lang.Object
google.registry.persistence.converter.BloomFilterConverter
- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,
byte[]>
public class BloomFilterConverter
extends Object
implements jakarta.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,byte[]>
JPA converter for ASCII String
BloomFilter
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
convertToDatabaseColumn
(com.google.common.hash.BloomFilter<String> entity) com.google.common.hash.BloomFilter
<String> convertToEntityAttribute
(byte[] columnValue)
-
Constructor Details
-
BloomFilterConverter
public BloomFilterConverter()
-
-
Method Details
-
convertToDatabaseColumn
@Nullable public byte[] convertToDatabaseColumn(@Nullable com.google.common.hash.BloomFilter<String> entity) - Specified by:
convertToDatabaseColumn
in interfacejakarta.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,
byte[]>
-
convertToEntityAttribute
@Nullable public com.google.common.hash.BloomFilter<String> convertToEntityAttribute(@Nullable byte[] columnValue) - Specified by:
convertToEntityAttribute
in interfacejakarta.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,
byte[]>
-