예제 #1
0
파일: task.py 프로젝트: csharpie/neo4fun
 def __init__(self, primary_label, primary_key=None, primary_value=None):
     CypherTask.__init__(self)
     self.__node = Node(primary_label)
     if primary_key is not None:
         self.__node.properties[primary_key] = CypherParameter("V", primary_value)
     self.__labels = LabelSet()
     self.__properties = PropertySet()
     self.__return = False
예제 #2
0
파일: task.py 프로젝트: LiuYuQ/beifen
    def labels(self):
        """ The full set of labels to apply to the merged node.

        :rtype: :class:`py2neo.LabelSet`
        """
        l = LabelSet(self.__labels)
        l.update(self.__node.labels)
        return l
예제 #3
0
파일: push.py 프로젝트: zrg1993/py2neo
 def __init__(self, node, labels):
     Job.__init__(self, "PUT", Target(node, "labels"),
                  list(LabelSet(labels)))