private static Partition createRangeSubPartitionWithPartition(
            SqlgGraph sqlgGraph,
            Partition parentPartition,
            String name,
            String from,
            String to,
            PartitionType partitionType,
            String partitionExpression) {

        Preconditions.checkArgument(!parentPartition.getAbstractLabel().getSchema().isSqlgSchema(), "createRangeSubPartitionWithPartition may not be called for \"%s\"", Topology.SQLG_SCHEMA);
        Partition partition = new Partition(sqlgGraph, parentPartition, name, from, to, partitionType, partitionExpression);
        partition.createRangePartitionOnDb();
        TopologyManager.addSubPartition(sqlgGraph, partition);
        partition.committed = false;
        return partition;
    }
private static Partition createRangeSubPartitionWithPartition ( SqlgGraph sqlgGraph , Partition parentPartition , String name , String from , String to , PartitionType partitionType , String partitionExpression ) { Preconditions . checkArgument ( ! parentPartition . getAbstractLabel ( ) . getSchema ( ) . isSqlgSchema ( ) , "createRangeSubPartitionWithPartition may not be called for \"%s\"" , Topology . SQLG_SCHEMA ) ; Partition partition = new Partition ( sqlgGraph , parentPartition , name , from , to , partitionType , partitionExpression ) ; partition . createRangePartitionOnDb ( ) ; TopologyManager . addSubPartition ( sqlgGraph , partition ) ; partition . committed = false ; return partition ; }
Create a range partition on an existing {@link Partition}

@param sqlgGraph
@param parentPartition
@param name
@param from
@param to
@return