Package org.lilyproject.indexer.model.indexerconf

Examples of org.lilyproject.indexer.model.indexerconf.RecordContext


    }

    @Override
    public void addDependency(SchemaId field) {
        RecordContext ctx = contexts.peek();
        try {
            if (!ctx.dep.moreDimensionedVariants.isEmpty() || !ctx.dep.id.equals(recordId)) { // avoid adding unnecesary self-references
                dependencies.get(DerefMapUtil.newEntry(
                        new AbsoluteRecordIdImpl(table, ctx.dep.id), ctx.dep.moreDimensionedVariants)).add(field);
            }
View Full Code Here


        return dependencies.asMap();
    }

    @Override
    public void push(Record record, Dep dep) {
        this.contexts.push(new RecordContext(record, dep));

        warnForUnmatchedDependencies(record);
    }
View Full Code Here

        warnForUnmatchedDependencies(record);
    }

    @Override
    public void push(Record record, Record contextRecord, Dep dep) {
        this.contexts.push(new RecordContext(record, contextRecord, dep));

        warnForUnmatchedDependencies(record);
    }
View Full Code Here

    private class FieldNameTemplateResolver implements NameTemplateResolver {

        @Override
        public Object resolve(TemplatePart part) {
            RecordContext ctx = contexts.peek();
            //TODO: add dependencies caused by resolving name template variables
            if (part instanceof FieldTemplatePart) {
                QName fieldName = ((FieldTemplatePart) part).getFieldType().getName();
                if (ctx.record.hasField(fieldName)) {
                    return ctx.record.getField(fieldName);
View Full Code Here

TOP

Related Classes of org.lilyproject.indexer.model.indexerconf.RecordContext

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.