Examples of SplitDocType


Examples of org.apache.jackrabbit.oak.plugins.document.NodeDocument.SplitDocType

    }

    public int deleteSplitDocuments(Set<SplitDocType> gcTypes, long oldestRevTimeStamp) {
        List<String> docsToDelete = Lists.newArrayList();
        for(NodeDocument doc : getAllDocuments()){
            SplitDocType splitType = doc.getSplitDocType();
            if(gcTypes.contains(splitType) && doc.hasAllRevisionLessThan(oldestRevTimeStamp)){
                docsToDelete.add(doc.getId());
            }
        }
        store.remove(Collection.NODES, docsToDelete);
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.NodeDocument.SplitDocType

     */
    private static void setSplitDocProps(NodeDocument mainDoc, NodeDocument oldDoc,
                                         UpdateOp old, Revision maxRev) {
        setSplitDocMaxRev(old, maxRev);

        SplitDocType type = SplitDocType.DEFAULT;
        if (!mainDoc.hasChildren()) {
            type = SplitDocType.DEFAULT_LEAF;
        } else if (oldDoc.getLocalRevisions().isEmpty()) {
            type = SplitDocType.COMMIT_ROOT_ONLY;
        }
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.