Data Type - Hierarchy

Card Puncher Data Processing


Hierarchy relationship in data type.


Hierarchy of type

The hierarchy of type defines how the types are implicitly converted. Implicit conversion is allowed for types from child to an ancestor. Example of Hierarchy for Hive:

Primitive Type > Number > DOUBLE > FLOAT > BIGINT > INT > SMALLINT > TINYINT
                                 > STRING
               > BOOLEAN

Note that the type hierarchy allows the implicit conversion of STRING to DOUBLE.

Hierarchy of class

More generally, every type may be organised in a hierarchy using a inheritance design. Example in Java: Java - (Inheritance|Class Hierarchy) - (Subclass|Superclass) - (Extends, Super) - ( is a relationship)

Discover More
Card Puncher Data Processing
Data Type - Coercion (ie Type Conversion)

Type conversion is called generally “coercion.” Coercion is the fact to change: the type of a primitive (Example from string to number) a class of an object. The function name to coerce...
Card Puncher Data Processing
Object - Relationship

in class (code). entity An Association is a structural relationship (a tuple) between the objects of two classes. A containment may be one of this form: composition - the building of object...
Pt Mt Ct Et Us Time Zones
What are Time Zones and how can you use them?

The world is split hierachically into time zones. The splitting may be done over two dimensions: longitudinal or city (Island) There are 24 longitudinal time zones (one time zone for one hour)...

Share this page:
Follow us:
Task Runner