Examples of RecordProjectOperator


Examples of com.facebook.presto.operator.RecordProjectOperator

        IndexSplit indexSplit = (IndexSplit) split.getConnectorSplit();

        // Normalize the incoming RecordSet to something that can be consumed by the index
        RecordSet normalizedRecordSet = probeKeyNormalizer.apply(indexSplit.getKeyRecordSet());
        RecordSet result = index.lookup(normalizedRecordSet);
        source = new RecordProjectOperator(operatorContext, result);

        operatorContext.setInfoSupplier(Suppliers.ofInstance(split.getInfo()));
    }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

                        true,
                        new DateTime(2001, 8, 22, 3, 4, 5, 321, DateTimeZone.UTC).getMillis(),
                        "%el%",
                        null
                ).build();
                return new RecordProjectOperator(operatorContext, records);
            }
            else {
                return new ValuesOperator(operatorContext, ImmutableList.of(SOURCE_PAGE));
            }
        }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

                        true,
                        MILLISECONDS.toSeconds(new DateTime(2001, 8, 22, 3, 4, 5, 321, DateTimeZone.UTC).getMillis()),
                        "%el%",
                        null
                ).build();
                return new RecordProjectOperator(operatorContext, records);
            }
            else {
                return new StaticOperator(operatorContext, ImmutableList.of(SOURCE_PAGE));
            }
        }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

                        true,
                        MILLISECONDS.toSeconds(new DateTime(2001, 8, 22, 3, 4, 5, 321, DateTimeZone.UTC).getMillis()),
                        "%el%",
                        null
                ).build();
                return new RecordProjectOperator(operatorContext, records);
            }
            else {
                return new StaticOperator(operatorContext, ImmutableList.of(SOURCE_PAGE));
            }
        }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

                        true,
                        new DateTime(2001, 8, 22, 3, 4, 5, 321, DateTimeZone.UTC).getMillis(),
                        "%el%",
                        null
                ).build();
                return new RecordProjectOperator(operatorContext, records);
            }
            else {
                return new ValuesOperator(operatorContext, ImmutableList.of(SOURCE_PAGE));
            }
        }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

        IndexSplit indexSplit = (IndexSplit) split.getConnectorSplit();

        // Remap the record set into the format the index is expecting
        RecordSet recordSet = new MappedRecordSet(indexSplit.getKeyRecordSet(), probeKeyRemap);
        RecordSet result = index.lookup(recordSet);
        source = new RecordProjectOperator(operatorContext, result);

        operatorContext.setInfoSupplier(Suppliers.ofInstance(split.getInfo()));
    }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

    }

    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, ConnectorSplit split, List<ConnectorColumnHandle> columns)
    {
        return new RecordProjectOperator(operatorContext, createRecordSet(split, columns));
    }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

    }

    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, ConnectorSplit split, List<ConnectorColumnHandle> columns)
    {
        return new RecordProjectOperator(operatorContext, createRecordSet(split, columns));
    }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

    }

    @Override
    public Operator createNewDataStream(OperatorContext operatorContext, ConnectorSplit split, List<ConnectorColumnHandle> columns)
    {
        return new RecordProjectOperator(operatorContext, recordSetProvider.getRecordSet(split, columns));
    }
View Full Code Here

Examples of com.facebook.presto.operator.RecordProjectOperator

                        true,
                        MILLISECONDS.toSeconds(new DateTime(2001, 8, 22, 3, 4, 5, 321, DateTimeZone.UTC).getMillis()),
                        "%el%",
                        null
                ).build();
                return new RecordProjectOperator(operatorContext, records);
            }
            else {
                return new StaticOperator(operatorContext, ImmutableList.of(SOURCE_PAGE));
            }
        }
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.