presto-main/src/main/java/io/prestosql/operator/SpatialIndexBuilderOperator.java/SpatialIndexBuilderOperator/finish
class SpatialIndexBuilderOperator:    @Override
    public void finish()
    {
        if (finishing) {
            return;
        }

        finishing = true;
        PagesSpatialIndexSupplier spatialIndex = index.createPagesSpatialIndex(operatorContext.getSession(), indexChannel, radiusChannel, partitionChannel, spatialRelationshipTest, filterFunctionFactory, outputChannels, partitions);
        localUserMemoryContext.setBytes(index.getEstimatedSize().toBytes() + spatialIndex.getEstimatedSize().toBytes());
        indexNotNeeded = pagesSpatialIndexFactory.lendPagesSpatialIndex(spatialIndex);
    }