Examples of RaptorPageSource


Examples of com.facebook.presto.raptor.RaptorPageSource

        }
        storageManager.commit(fileHandles);

        assertTrue(storageManager.shardExists(shardUuid));

        RaptorPageSource raptorPageSource = new RaptorPageSource(ImmutableList.of(
                storageManager.getBlocks(shardUuid, columnHandles.get(0)),
                storageManager.getBlocks(shardUuid, columnHandles.get(1))));

        List<Page> actualPages = new ArrayList<>();
        while (!raptorPageSource.isFinished()) {
            Page page = raptorPageSource.getNextPage();
            if (page != null) {
                actualPages.add(page);
            }
        }
        MaterializedResult actual = toMaterializedResult(session, types, actualPages);
View Full Code Here

Examples of com.facebook.presto.raptor.RaptorPageSource

        List<Iterable<Block>> sources = sourcesBuilder.build();
        ColumnFileHandle targetFileHandle = builder.build();

        if (!sources.isEmpty()) {
            // Throw out any stats generated by the optimization step
            importData(new RaptorPageSource(sources), targetFileHandle);
        }

        targetFileHandle.commit();

        return targetFileHandle;
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.