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 BloomFilters.
  • Constructor Details

    • BloomFilterConverter

      public BloomFilterConverter()
  • Method Details

    • convertToDatabaseColumn

      @Nullable public byte[] convertToDatabaseColumn(@Nullable com.google.common.hash.BloomFilter<String> entity)
      Specified by:
      convertToDatabaseColumn in interface jakarta.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 interface jakarta.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,byte[]>