Package com.facebook.presto

Examples of com.facebook.presto.ExceededMemoryLimitException


                        return myUpdateRequest.getFinishedIndexSnapshot();
                    }
                }

                stats.recordFailedIndexJoinLookup();
                throw new ExceededMemoryLimitException(maxIndexMemorySize, "Index");
            }
        }

        // return the snapshot from the update request as another thread may have already flushed the request
        return myUpdateRequest.getFinishedIndexSnapshot();
View Full Code Here


                Block[] row = page.getSingleValueBlocks(position);
                sizeDelta += partitionBuilder.replaceRow(row);
            }
        }
        if (!memoryManager.canUseDelta(sizeDelta)) {
            throw new ExceededMemoryLimitException(memoryManager.getMaxMemorySize());
        }
    }
View Full Code Here

        long delta = newMemoryReservation - memoryReservation.get();

        // currently, operator memory is not be released
        if (delta > 0 && !reserveMemory(delta)) {
            throw new ExceededMemoryLimitException(getMaxMemorySize());
        }

        return newMemoryReservation;
    }
View Full Code Here

        long delta = newMemoryReservation - memoryReservation.get();

        // currently, operator memory is not be released
        if (delta > 0 && !reserveMemory(delta)) {
            throw new ExceededMemoryLimitException(getMaxMemorySize());
        }

        return newMemoryReservation;
    }
View Full Code Here

                return null;
            }

            // Only partial aggregation can flush early. Also, check that we are not flushing tiny bits at a time
            if (!finishing && step != Step.PARTIAL) {
                throw new ExceededMemoryLimitException(memoryManager.getMaxMemorySize());
            }

            outputIterator = aggregationBuilder.build();
            aggregationBuilder = null;
View Full Code Here

                return null;
            }

            // Only partial aggregation can flush early. Also, check that we are not flushing tiny bits at a time
            if (!finishing && step != Step.PARTIAL) {
                throw new ExceededMemoryLimitException(memoryManager.getMaxMemorySize());
            }

            outputIterator = aggregationBuilder.build();
            aggregationBuilder = null;
View Full Code Here

        long delta = newMemoryReservation - memoryReservation.get();

        // currently, operator memory is not be released
        if (delta > 0 && !reserveMemory(delta)) {
            throw new ExceededMemoryLimitException(getMaxMemorySize());
        }

        return newMemoryReservation;
    }
View Full Code Here

                Block[] row = getSingleValueBlocks(page, position);
                sizeDelta += partitionBuilder.replaceRow(row);
            }
        }
        if (!memoryManager.canUseDelta(sizeDelta)) {
            throw new ExceededMemoryLimitException(memoryManager.getMaxMemorySize());
        }
    }
View Full Code Here

            }
            else {
                aggregation.addInput(page);
            }
            if (!memoryManager.canUse(aggregation.getEstimatedSize())) {
                throw new ExceededMemoryLimitException(memoryManager.getMaxMemorySize());
            }
        }
View Full Code Here

                return null;
            }

            // Only partial aggregation can flush early. Also, check that we are not flushing tiny bits at a time
            if (!finishing && step != Step.PARTIAL) {
                throw new ExceededMemoryLimitException(memoryManager.getMaxMemorySize());
            }

            outputIterator = aggregationBuilder.build();
            aggregationBuilder = null;
View Full Code Here

TOP

Related Classes of com.facebook.presto.ExceededMemoryLimitException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.