directory.deletePrimaryIndexKey(primaryIndexKey);
}
public void deleteResourceId(String resource, Object id) throws HiveLockableException {
if (getResource(resource).isPartitioningResource())
throw new HiveRuntimeException(String.format("Attempt to delete a resource id of resource %s, which is a partitioning dimension. It can only be deleted as a primary index key", id));
Preconditions.isWritable(directory.getKeySemaphoresOfResourceId(getResource(resource), id), semaphore);
directory.deleteResourceId(getResource(resource), id);
}