@Override
	public void createPartition(ObjectPath tablePath, CatalogPartitionSpec partitionSpec, CatalogPartition partition, boolean ignoreIfExists)
		throws TableNotExistException, TableNotPartitionedException, PartitionSpecInvalidException, PartitionAlreadyExistsException, CatalogException {

		validatePartitionSpec(tablePath, partitionSpec);

		if (partitionExists(tablePath, partitionSpec)) {
			if (!ignoreIfExists) {
				throw new PartitionAlreadyExistsException(catalogName, tablePath, partitionSpec);
			}
		} else {
			partitions.get(tablePath).put(partitionSpec, partition.copy());
		}
	}
@ Override public void createPartition ( ObjectPath tablePath , CatalogPartitionSpec partitionSpec , CatalogPartition partition , boolean ignoreIfExists ) throws TableNotExistException , TableNotPartitionedException , PartitionSpecInvalidException , PartitionAlreadyExistsException , CatalogException { validatePartitionSpec ( tablePath , partitionSpec ) ; if ( partitionExists ( tablePath , partitionSpec ) ) { if ( ! ignoreIfExists ) { throw new PartitionAlreadyExistsException ( catalogName , tablePath , partitionSpec ) ; } } else { partitions . get ( tablePath ) . put ( partitionSpec , partition . copy ( ) ) ; } }
------ partitions ------