Examples of writeNode()


Examples of org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeNode()

        DBObject id = new BasicDBObject("_id", "root");
        state = journals.findOne(id, null, primaryPreferred());
        if (state == null) {
            SegmentWriter writer = new SegmentWriter(store);
            RecordId headId = writer.writeNode(head).getRecordId();
            writer.flush();
            state = new BasicDBObject(of(
                    "_id""root",
                    "head", headId.toString()));
            try {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeNode()

                RecordId newBase = parent.getHead();
                NodeBuilder builder =
                        new SegmentNodeState(store, newBase).builder();
                after.compareAgainstBaseState(before, new MergeDiff(builder));
                RecordId newHead =
                        writer.writeNode(builder.getNodeState()).getRecordId();
                writer.flush();

                base = newBase;
                head = newHead;
            }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeNode()

    public MemoryJournal(SegmentStore store, NodeState head) {
        this.store = checkNotNull(store);
        this.parent = null;

        SegmentWriter writer = new SegmentWriter(store);
        RecordId id = writer.writeNode(head).getRecordId();
        writer.flush();

        this.base = id;
        this.head = id;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.segment.SegmentWriter.writeNode()

                RecordId newBase = parent.getHead();
                NodeBuilder builder =
                        new SegmentNodeState(store, newBase).builder();
                after.compareAgainstBaseState(before, new MergeDiff(builder));
                NodeState state = builder.getNodeState();
                RecordId newHead = writer.writeNode(state).getRecordId();
                writer.flush();

                base = newBase;
                head = newHead;
            }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode()

    configItemSetEntry.setAttribute(ATTRIBUTE_CONFIG_NAME, "view-settings");
    Element configItemMapIndexed  = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_INDEXED);
    configItemMapIndexed.setAttribute(ATTRIBUTE_CONFIG_NAME, "Views");
    Element configItemMapEntry    = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_ENTRY);
    BookSettings bs = (BookSettings) decoder.getSettings();
    bs.writeNode(settings, configItemMapEntry);
 
    configItemMapIndexed.appendChild(configItemMapEntry);
    configItemSetEntry.appendChild(configItemMapIndexed);
    root.appendChild(configItemSetEntry);
  }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode()

    configItemSetEntry.setAttribute(ATTRIBUTE_CONFIG_NAME, "view-settings");
    Element configItemMapIndexed  = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_INDEXED);
    configItemMapIndexed.setAttribute(ATTRIBUTE_CONFIG_NAME, "Views");
    Element configItemMapEntry    = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_ENTRY);
    BookSettings bs = (BookSettings) decoder.getSettings();
    bs.writeNode(settings, configItemMapEntry);
 
    configItemMapIndexed.appendChild(configItemMapEntry);
    configItemSetEntry.appendChild(configItemMapIndexed);
    root.appendChild(configItemSetEntry);
  }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode()

    configItemSetEntry.setAttribute(ATTRIBUTE_CONFIG_NAME, "view-settings");
    Element configItemMapIndexed  = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_INDEXED);
    configItemMapIndexed.setAttribute(ATTRIBUTE_CONFIG_NAME, "Views");
    Element configItemMapEntry    = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_ENTRY);
    BookSettings bs = (BookSettings) decoder.getSettings();
    bs.writeNode(settings, configItemMapEntry);
 
    configItemMapIndexed.appendChild(configItemMapEntry);
    configItemSetEntry.appendChild(configItemMapIndexed);
    root.appendChild(configItemSetEntry);
  }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode()

    configItemSetEntry.setAttribute(ATTRIBUTE_CONFIG_NAME, "view-settings");
    Element configItemMapIndexed  = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_INDEXED);
    configItemMapIndexed.setAttribute(ATTRIBUTE_CONFIG_NAME, "Views");
    Element configItemMapEntry    = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_ENTRY);
    BookSettings bs = (BookSettings) decoder.getSettings();
    bs.writeNode(settings, configItemMapEntry);
 
    configItemMapIndexed.appendChild(configItemMapEntry);
    configItemSetEntry.appendChild(configItemMapIndexed);
    root.appendChild(configItemSetEntry);
  }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode()

    configItemSetEntry.setAttribute(ATTRIBUTE_CONFIG_NAME, "view-settings");
    Element configItemMapIndexed  = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_INDEXED);
    configItemMapIndexed.setAttribute(ATTRIBUTE_CONFIG_NAME, "Views");
    Element configItemMapEntry    = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_ENTRY);
    BookSettings bs = (BookSettings) decoder.getSettings();
    bs.writeNode(settings, configItemMapEntry);
 
    configItemMapIndexed.appendChild(configItemMapEntry);
    configItemSetEntry.appendChild(configItemMapIndexed);
    root.appendChild(configItemSetEntry);
  }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode()

    configItemSetEntry.setAttribute(ATTRIBUTE_CONFIG_NAME, "view-settings");
    Element configItemMapIndexed  = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_INDEXED);
    configItemMapIndexed.setAttribute(ATTRIBUTE_CONFIG_NAME, "Views");
    Element configItemMapEntry    = (Element) settings.createElement(TAG_CONFIG_ITEM_MAP_ENTRY);
    BookSettings bs = (BookSettings) decoder.getSettings();
    bs.writeNode(settings, configItemMapEntry);
 
    configItemMapIndexed.appendChild(configItemMapEntry);
    configItemSetEntry.appendChild(configItemMapIndexed);
    root.appendChild(configItemSetEntry);
  }
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.