com.twitter.scalding.serialization
returns Some if the size is cheap to calculate.
returns Some if the size is cheap to calculate. otherwise the caller should just serialize into an ByteArrayOutputStream
If all items have a static size, this returns Some, else None NOTE: lawful implementations that return Some here much return Some on dynamicSize so callers don't need to check both when they have an instance.
If all items have a static size, this returns Some, else None NOTE: lawful implementations that return Some here much return Some on dynamicSize so callers don't need to check both when they have an instance.
In order to cache Serializations having equality and hashes can be useful. Extend this trait when those two properties can be satisfied