public interface CoercibleType<Canonical> extends Type, Serializable
Fieldsinstances to be extended with custom type information. It is the role of implementations of this interface to maintain a canonical representation of a given value and to allow for coercions between some type representation to the canonical type and back. For example, if a field in a text delimited file is a date, ie.
28/Dec/2012:16:17:12:931 -0800it may be beneficial for the internal representation to be a
Longvalue for performance reasons. Note CoercibleType used in conjunction with the TextDelimited parsers is not a replacement for using a pipe assembly to cleanse data. Pushing data cleansing down to a
Schememay not provide the flexibility and robustness expected. CoercibleTypes are a convenience when the input data is of high quality or was previously written out using a CoercibleType instance. The CoercibleTypes further allow the Cascading planner to perform type checks during joins. If no
Comparatoris in use, and lhs and rhs fields are not the same type, the planner will throw an exception.
value- of type Object
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.