Examples of AsyncRecursiveWalker


Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

        }
    }

    private AsyncRecursiveWalker createRecursiveWalker(FileSystem fs, SuspendingExecutor suspendingExecutor)
    {
        return new AsyncRecursiveWalker(fs, suspendingExecutor, directoryLister, namenodeStats);
    }
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

                    }
                    markerQueue.finish();
                    continue;
                }

                ListenableFuture<Void> partitionFuture = new AsyncRecursiveWalker(fs, suspendingExecutor).beginWalk(partitionPath, new FileStatusCallback()
                {
                    @Override
                    public void process(FileStatus file, BlockLocation[] blockLocations)
                    {
                        if (bucket.isPresent() && !fileMatchesBucket(file.getPath().getName(), bucket.get())) {
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

                // Acquire semaphore so that we only have a fixed number of outstanding partitions being processed asynchronously
                // NOTE: there must not be any calls that throw in the space between acquiring the semaphore and setting the Future
                // callback to release it. Otherwise, we will need a try-finally block around this section.
                semaphore.acquire();

                ListenableFuture<Void> partitionFuture = new AsyncRecursiveWalker(fs, suspendingExecutor).beginWalk(path, new FileStatusCallback()
                {
                    @Override
                    public void process(FileStatus file, BlockLocation[] blockLocations)
                    {
                        try {
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

                        markerQueue.finish();
                        continue;
                    }
                }

                ListenableFuture<Void> partitionFuture = new AsyncRecursiveWalker(fs, suspendingExecutor).beginWalk(path, new FileStatusCallback()
                {
                    @Override
                    public void process(FileStatus file, BlockLocation[] blockLocations)
                    {
                        try {
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

                // Acquire semaphore so that we only have a fixed number of outstanding partitions being processed asynchronously
                // NOTE: there must not be any calls that throw in the space between acquiring the semaphore and setting the Future
                // callback to release it. Otherwise, we will need a try-finally block around this section.
                semaphore.acquire();

                ListenableFuture<Void> partitionFuture = new AsyncRecursiveWalker(fs, suspendingExecutor).beginWalk(path, new FileStatusCallback()
                {
                    @Override
                    public void process(FileStatus file, BlockLocation[] blockLocations)
                    {
                        try {
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

                // Acquire semaphore so that we only have a fixed number of outstanding partitions being processed asynchronously
                // NOTE: there must not be any calls that throw in the space between acquiring the semaphore and setting the Future
                // callback to release it. Otherwise, we will need a try-finally block around this section.
                semaphore.acquire();

                ListenableFuture<Void> partitionFuture = new AsyncRecursiveWalker(fs, suspendingExecutor, hadoopApiStats).beginWalk(path, new FileStatusCallback()
                {
                    @Override
                    public void process(FileStatus file, BlockLocation[] blockLocations)
                    {
                        try {
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

        }
    }

    private AsyncRecursiveWalker createRecursiveWalker(FileSystem fs, SuspendingExecutor suspendingExecutor)
    {
        return new AsyncRecursiveWalker(fs, suspendingExecutor, directoryLister, namenodeStats);
    }
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

        }
    }

    private AsyncRecursiveWalker createRecursiveWalker(FileSystem fs, SuspendingExecutor suspendingExecutor)
    {
        return new AsyncRecursiveWalker(fs, suspendingExecutor, directoryLister, namenodeStats);
    }
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

                        markerQueue.finish();
                        continue;
                    }
                }

                ListenableFuture<Void> partitionFuture = new AsyncRecursiveWalker(fs, suspendingExecutor).beginWalk(partitionPath, new FileStatusCallback()
                {
                    @Override
                    public void process(FileStatus file, BlockLocation[] blockLocations)
                    {
                        try {
View Full Code Here

Examples of com.facebook.presto.hive.util.AsyncRecursiveWalker

        }
    }

    private AsyncRecursiveWalker createRecursiveWalker(FileSystem fs, SuspendingExecutor suspendingExecutor)
    {
        return new AsyncRecursiveWalker(fs, suspendingExecutor, directoryLister, namenodeStats);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.