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 booleancanHandle(Class clazz)Enables checking whether the converter can convert a particular class.Doubleconvert(Object object)Request that the Serialisation serialises some object and returns the raw bytes of the serialised form.org.apache.spark.sql.types.DataTypeconvertedType()Returns theDataTypeindicating the type of the object that results from the conversion.
-
-
-
Method Detail
-
canHandle
public boolean canHandle(Class clazz)
Description copied from interface:ConverterEnables checking whether the converter can convert a particular class.
-
convertedType
public org.apache.spark.sql.types.DataType convertedType()
Description copied from interface:ConverterReturns theDataTypeindicating the type of the object that results from the conversion.- Specified by:
convertedTypein interfaceConverter- Returns:
- DataType the
DataTypecorresponding to the class that the object will be converted to.
-
convert
public Double convert(Object object) throws ConversionException
Description copied from interface:ConverterRequest that the Serialisation serialises some object and returns the raw bytes of the serialised form.- Specified by:
convertin interfaceConverter- Parameters:
object- the object to be serialised- Returns:
- Object the converted object
- Throws:
ConversionException- if the conversion of the object fails
-
-