public static void addSubPartition ( SqlgGraph sqlgGraph , Partition partition ) { AbstractLabel abstractLabel = partition . getAbstractLabel ( ) ; addSubPartition ( sqlgGraph , partition . getParentPartition ( ) . getParentPartition ( ) != null , abstractLabel instanceof VertexLabel , abstractLabel . getSchema ( ) . getName ( ) , abstractLabel . getName ( ) , partition . getParentPartition ( ) . getName ( ) , partition . getName ( ) , partition . getPartitionType ( ) , partition . getPartitionExpression ( ) , partition . getFrom ( ) , partition . getTo ( ) , partition . getIn ( ) ) ; }
Adds the partition to a partition . A new Vertex with label Partition is added and in linked to its parent with the SQLG_SCHEMA_PARTITION_PARTITION_EDGE edge label .