@Override public void remove(boolean preserveData) { if (this.abstractLabel != null) { this.abstractLabel.removePartition(this, preserveData); } else { this.parentPartition.removePartition(this, preserveData); } }
@Override public void remove(boolean preserveData) { if (this.abstractLabel != null) { this.abstractLabel.removePartition(this, preserveData); } else { this.parentPartition.removePartition(this, preserveData); } }
private void removePartition(Partition partition, boolean preserveData) { this.getAbstractLabel().getSchema().getTopology().lock(); for (Partition partition1 : partition.getPartitions().values()) { partition.removePartition(partition1, preserveData); } String fn = partition.getName(); if (!uncommittedRemovedPartitions.contains(fn)) { uncommittedRemovedPartitions.add(fn); TopologyManager.removePartition(this.sqlgGraph, partition); if (!preserveData) { partition.delete(); } else { partition.detach(); } this.getAbstractLabel().getSchema().getTopology().fire(partition, "", TopologyChangeAction.DELETE); } }
private void removePartition(Partition partition, boolean preserveData) { this.getAbstractLabel().getSchema().getTopology().lock(); for (Partition partition1 : partition.getPartitions().values()) { partition.removePartition(partition1, preserveData); } String fn = partition.getName(); if (!uncommittedRemovedPartitions.contains(fn)) { uncommittedRemovedPartitions.add(fn); TopologyManager.removePartition(this.sqlgGraph, partition); if (!preserveData) { partition.delete(); } else { partition.detach(); } this.getAbstractLabel().getSchema().getTopology().fire(partition, "", TopologyChangeAction.DELETE); } }