Class UnionConverter
- java.lang.Object
-
- uk.gov.gchq.gaffer.spark.operation.dataframe.converter.property.impl.datasketches.theta.UnionConverter
-
- All Implemented Interfaces:
Serializable
,Converter
public class UnionConverter extends Object implements Converter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnionConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Class clazz)
Enables checking whether the converter can convert a particular class.Double
convert(Object object)
Request that the Serialisation serialises some object and returns the raw bytes of the serialised form.org.apache.spark.sql.types.DataType
convertedType()
Returns theDataType
indicating the type of the object that results from the conversion.
-
-
-
Method Detail
-
canHandle
public boolean canHandle(Class clazz)
Description copied from interface:Converter
Enables checking whether the converter can convert a particular class.
-
convertedType
public org.apache.spark.sql.types.DataType convertedType()
Description copied from interface:Converter
Returns theDataType
indicating the type of the object that results from the conversion.- Specified by:
convertedType
in interfaceConverter
- Returns:
- DataType the
DataType
corresponding to the class that the object will be converted to.
-
convert
public Double convert(Object object) throws ConversionException
Description copied from interface:Converter
Request that the Serialisation serialises some object and returns the raw bytes of the serialised form.- Specified by:
convert
in interfaceConverter
- Parameters:
object
- the object to be serialised- Returns:
- Object the converted object
- Throws:
ConversionException
- if the conversion of the object fails
-
-