butterfree.constants package

Submodules

Holds common column names, constant through all Butterfree.

DataType Enum Entity.

class butterfree.constants.data_type.DataType(value)

Bases: enum.Enum

Holds constants for data types within Butterfree.

ARRAY_BIGINT = (ArrayType(LongType,true), 'frozen<list<bigint>>')
ARRAY_FLOAT = (ArrayType(FloatType,true), 'frozen<list<float>>')
ARRAY_STRING = (ArrayType(StringType,true), 'frozen<list<text>>')
BIGINT = (LongType, 'bigint')
BINARY = (BinaryType, 'boolean')
BOOLEAN = (BooleanType, 'boolean')
DATE = (DateType, 'timestamp')
DECIMAL = (DecimalType(10,0), 'decimal')
DOUBLE = (DoubleType, 'double')
FLOAT = (FloatType, 'float')
INTEGER = (IntegerType, 'int')
STRING = (StringType, 'text')
TIMESTAMP = (TimestampType, 'timestamp')

Holds common spark constants, present through all Butterfree.

Module contents

Holds constant attributes that are common for Butterfree.

class butterfree.constants.DataType(value)

Bases: enum.Enum

Holds constants for data types within Butterfree.

ARRAY_BIGINT = (ArrayType(LongType,true), 'frozen<list<bigint>>')
ARRAY_FLOAT = (ArrayType(FloatType,true), 'frozen<list<float>>')
ARRAY_STRING = (ArrayType(StringType,true), 'frozen<list<text>>')
BIGINT = (LongType, 'bigint')
BINARY = (BinaryType, 'boolean')
BOOLEAN = (BooleanType, 'boolean')
DATE = (DateType, 'timestamp')
DECIMAL = (DecimalType(10,0), 'decimal')
DOUBLE = (DoubleType, 'double')
FLOAT = (FloatType, 'float')
INTEGER = (IntegerType, 'int')
STRING = (StringType, 'text')
TIMESTAMP = (TimestampType, 'timestamp')