Class BloomFilterConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<com.google.common.hash.BloomFilter<java.lang.String>,​byte[]>

    public class BloomFilterConverter
    extends java.lang.Object
    implements javax.persistence.AttributeConverter<com.google.common.hash.BloomFilter<java.lang.String>,​byte[]>
    JPA converter for ASCII String BloomFilters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] convertToDatabaseColumn​(com.google.common.hash.BloomFilter<java.lang.String> entity)  
      com.google.common.hash.BloomFilter<java.lang.String> convertToEntityAttribute​(byte[] columnValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BloomFilterConverter

        public BloomFilterConverter()
    • Method Detail

      • convertToDatabaseColumn

        @Nullable
        public byte[] convertToDatabaseColumn​(@Nullable
                                              com.google.common.hash.BloomFilter<java.lang.String> entity)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<com.google.common.hash.BloomFilter<java.lang.String>,​byte[]>
      • convertToEntityAttribute

        @Nullable
        public com.google.common.hash.BloomFilter<java.lang.String> convertToEntityAttribute​(@Nullable
                                                                                             byte[] columnValue)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<com.google.common.hash.BloomFilter<java.lang.String>,​byte[]>