Examples of NodeId


Examples of org.apache.jackrabbit.spi.NodeId

                l = new ArrayList<NodeId>(predecessorIds.length);
                l.addAll(Arrays.asList(predecessorIds));
                Property predecessors = node.getProperty(resolver.getJCRName(NameConstants.JCR_PREDECESSORS));
                for (Value value : predecessors.getValues()) {
                    NodeId vId = idFactory.createNodeId(value.getString());
                    l.remove(vId);
                }
                cancel = l.isEmpty();
                if (cancel) {
                    node.cancelMerge(version);
View Full Code Here

Examples of org.apache.uima.ducc.ws.types.NodeId

  }
 
  public List<NodePidList> getUserProcesses(List<String> nodeList, String user) {
    List<NodePidList> nodePidListList = new ArrayList<NodePidList>();
    for(String node : nodeList) {
      List<String> pids = getPids(new NodeId(node), new UserId(user));
      NodePidList nodePidList = new NodePidList(node, pids);
      nodePidListList.add(nodePidList);
    }
    return nodePidListList;
  }
View Full Code Here

Examples of org.chaidb.db.api.keys.NodeId

        kContext.checkLock(getBTreeName());
        if (value == null || !(value instanceof NodeId)) {
            throw new ChaiDBException(ErrorCode.BTREE_DEBUG, "the value is invalid , maybe null or not node id type.");
        }
        this.getBTreeSpec().setModified(true);
        NodeId nodeid = (NodeId) value;
        NodeId tmpId = null;
        DuplicatedKeyIterator dki = lookup(key, kContext);
        try {
            while (dki.hasNext()) {
                tmpId = (NodeId) dki.next();
                if (tmpId.equals(nodeid)) {
                    dki.remove();
                    return true;
                }
            } //end while
        } finally {
View Full Code Here

Examples of org.chaidb.db.api.keys.NodeId

        this.getBTreeSpec().setModified(true);
        int ret = 0;
        DuplicatedKeyIterator dki = lookup(key, kContext);
        try {
            while (dki.hasNext()) {
                NodeId nodeid = (NodeId) dki.next();
                if (nodeid.getDocId() == docId) {
                    dki.remove();
                    ret++;
                }
            } //end while
        } finally {
View Full Code Here

Examples of org.chaidb.db.api.keys.NodeId

        try {

            Enumeration enuKeys = keys(kContext);

            while (enuKeys.hasMoreElements()) {
                NodeId nodeid = (NodeId) enuKeys.nextElement();
                if (nodeid.getDocId() == docid) {
                    deleteNodes.add(nodeid);

                }
            }//end while

            int ret = 0;
            Iterator itDeleteNodes = deleteNodes.iterator();
            while (itDeleteNodes.hasNext()) {
                NodeId nodeid = (NodeId) itDeleteNodes.next();
                if (delete(nodeid, kContext)) {
                    ret++;
                }
            }
View Full Code Here

Examples of org.exist.numbering.NodeId

           DocumentImpl doc, boolean pooled) {
        int pos = start;
        pos += LENGTH_SIGNATURE_LENGTH;
        final int dlnLen = ByteConversion.byteToShort(data, pos);
        pos += NodeId.LENGTH_NODE_ID_UNITS;
        final NodeId dln = doc.getBrokerPool().getNodeFactory().createFromData(dlnLen, data, pos);
        int nodeIdLen = dln.size();
        pos += nodeIdLen;
        String cdata = new String(data, pos, len - (pos - start), UTF_8 );
        //OK : we have the necessary material to build the comment
        CommentImpl comment;
        if(pooled)
View Full Code Here

Examples of org.graylog2.plugin.system.NodeId

    private volatile Lifecycle lifecycle = Lifecycle.UNINITIALIZED;

    @Inject
    public ServerStatus(BaseConfiguration configuration, Set<Capability> capabilities, EventBus eventBus) {
        this.eventBus = eventBus;
        this.nodeId = new NodeId(configuration.getNodeIdFile());
        this.startedAt = Tools.iso8601();
        this.capabilitySet = Sets.newHashSet(capabilities); // copy, because we support adding more capabilities later
    }
View Full Code Here

Examples of org.jivesoftware.openfire.cluster.NodeID

        }
    }

    public void leftCluster(byte[] nodeID) {
        if (ClusterManager.isSeniorClusterMember()) {
            NodeID leftNode = NodeID.getInstance(nodeID);
            for (Map.Entry<String, ClusteredServerItem> entry : serverItems.entrySet()) {
                String jid = entry.getKey();
                Lock lock = CacheFactory.getLock(jid, serverItems);
                try {
                    lock.lock();
View Full Code Here

Examples of org.modeshape.jcr.query.model.NodeId

            }
            if ("mode:depth".equals(property) || "jcr:depth".equals(property)) {
                return new NodeDepth(propValue.selectorName());
            }
            if ("mode:id".equals(property)) {
                return new NodeId(propValue.selectorName());
            }
            if ("jcr:score".equals(property)) {
                return new FullTextSearchScore(propValue.selectorName());
            }
        }
View Full Code Here

Examples of org.opcfoundation.ua.builtintypes.NodeId

        nodeSet.getAliases().getAlias().stream().forEach(a -> {
            aliasMap.put(a.getAlias(), NodeId.parseNodeId(a.getValue()));
        });

        nodeSet.getUAObjectOrUAVariableOrUAMethod().stream().forEach(gNode -> {
            NodeId sourceNodeId = NodeId.parseNodeId(gNode.getNodeId());

            gNode.getReferences().getReference().forEach(gReference -> {
                Map<NodeId, ReferenceType> references = referenceAndInverse(sourceNodeId, gReference);

                references.keySet().stream().forEach(nodeId -> {
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.