Package com.facebook.presto.metadata

Examples of com.facebook.presto.metadata.ColumnFileHandle$Builder


                    .addDriverContext()
                    .addOperatorContext(0, "tpch-generate");

            RecordProjectOperator source = new RecordProjectOperator(operatorContext, records);

            ColumnFileHandle columnFileHandle = ColumnFileHandle.builder(0)
                    .addColumn(columnHandle, cachedFile, encoding)
                    .build();

            while (!source.isFinished()) {
                Page page = source.getOutput();
                if (page != null) {
                    columnFileHandle.append(page);
                }
            }
            columnFileHandle.commit();

            return cachedFile;
        }
        catch (IOException e) {
            throw Throwables.propagate(e);
View Full Code Here


                    .addDriverContext()
                    .addOperatorContext(0, "tpch-generate");

            RecordProjectOperator source = new RecordProjectOperator(operatorContext, records);

            ColumnFileHandle columnFileHandle = ColumnFileHandle.builder(UUID.randomUUID())
                    .addColumn(columnHandle, cachedFile, encoding)
                    .build();

            while (!source.isFinished()) {
                Page page = source.getOutput();
                if (page != null) {
                    columnFileHandle.append(page);
                }
            }
            columnFileHandle.commit();

            return cachedFile;
        }
        catch (IOException e) {
            throw Throwables.propagate(e);
View Full Code Here

TOP

Related Classes of com.facebook.presto.metadata.ColumnFileHandle$Builder

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.