private Partition createRangePartitionWithSubPartition( String name, String from, String to, PartitionType partitionType, String partitionExpression) { Preconditions.checkState(!this.getAbstractLabel().getSchema().isSqlgSchema(), "createRangePartitionWithSubPartition may not be called for \"%s\"", Topology.SQLG_SCHEMA); this.uncommittedPartitions.remove(name); Partition partition = Partition.createRangeSubPartitionWithPartition( this.sqlgGraph, this, name, from, to, partitionType, partitionExpression); this.uncommittedPartitions.put(name, partition); this.getAbstractLabel().getSchema().getTopology().fire(partition, "", TopologyChangeAction.CREATE); return partition; }
private Partition createRangePartitionWithSubPartition( String name, String from, String to, PartitionType partitionType, String partitionExpression) { Preconditions.checkState(!this.getAbstractLabel().getSchema().isSqlgSchema(), "createRangePartitionWithSubPartition may not be called for \"%s\"", Topology.SQLG_SCHEMA); this.uncommittedPartitions.remove(name); Partition partition = Partition.createRangeSubPartitionWithPartition( this.sqlgGraph, this, name, from, to, partitionType, partitionExpression); this.uncommittedPartitions.put(name, partition); this.getAbstractLabel().getSchema().getTopology().fire(partition, "", TopologyChangeAction.CREATE); return partition; }