Class BloomFilterConverter

java.lang.Object
google.registry.persistence.converter.BloomFilterConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,byte[]>

public class BloomFilterConverter extends Object implements javax.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 javax.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 javax.persistence.AttributeConverter<com.google.common.hash.BloomFilter<String>,byte[]>