Data Load from Asterix

>> How can I do that? It looks like I would need an operator to set
location constraints.

You can construct location constraints from the input paths, since each
path contains a NC name.
Basically the location constraints of scanning asterixdb B-trees should
come from the info obtained from asterixdb.
Also, the same asterixdb constraints should also used for the
FakeMetaOperatorDescriptor, since a 1-to-1 connector requires both producer
and consumer to have the same location constraint.

On Tue, Nov 4, 2014 at 3:33 PM, markus-h <notifications@github.com> wrote:

> In
> pregelix-core/src/main/java/edu/uci/ics/pregelix/core/jobgen/JobGen.java:
>
> > +        /*
> > +         * Fake Start. Used to Simulate the Asterix pipeline entry point and to add the given Asterix Index to the LocalResourceRepository
> > +         */
> > +        FakeMetaOperatorDescriptor fakeStart = new FakeMetaOperatorDescriptor(spec, recordDescriptorAsterix, asterixFileSplitProvider);
> > +        setLocationConstraint(spec, fakeStart);
> > +
> > +
> > +        /*
> > +         * Read from Asterix b-tree
> > +         */
> > +        BTreeSearchOperatorDescriptor btreeSearchOp = new BTreeSearchOperatorDescriptor(spec, recordDescriptorAsterix, storageManagerInterface,
> > +                lcManagerProvider, asterixFileSplitProvider, typeTraitsAsterix, comparatorFactories, treeFields, null,
> > +                null, true, true, asterixDataflowHelperFactory, false, false, null,
> > +                NoOpOperationCallbackFactory.INSTANCE, null, null);
> > +
> > +        setLocationConstraint(spec, btreeSearchOp);
>
> How can I do that? It looks like I would need an operator to set location
> constraints.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pregelix/pregelix/pull/8/files#r19845342>.
>