I'm trying to use a BloomFilter inside of a class that uses a TypeTag:
class MyClass[T: TypeTag](numberOfItems: Long, falsePositiveRate: Double) {
val bloomFilter = BloomFilter[T](numberOfItems, falsePositiveRate)
}
However at compile time I get could not find implicit value for parameter canGenerateHash: bloomfilter.CanGenerateHashFrom[T]. Is there a way around this?
I'm trying to use a
BloomFilter
inside of a class that uses aTypeTag
:However at compile time I get
could not find implicit value for parameter canGenerateHash: bloomfilter.CanGenerateHashFrom[T]
. Is there a way around this?Thank you, Chris