|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LabelOperations
| Method Summary | |
|---|---|
boolean |
addLabelToNode(long labelId,
long nodeId)
Labels a node with the label corresponding to the given label id. |
long |
getLabelId(String label)
Returns a label id for a label name. |
String |
getLabelName(long labelId)
Returns the label name for the given label id. |
Iterator<Long> |
getLabelsForNode(long nodeId)
Returns all labels set on node with id nodeId. |
long |
getOrCreateLabelId(String label)
Returns a label id for a label name. |
boolean |
isLabelSetOnNode(long labelId,
long nodeId)
Checks if a node is labeled with a certain label or not. |
boolean |
removeLabelFromNode(long labelId,
long nodeId)
Removes a label with the corresponding id from a node. |
| Method Detail |
|---|
long getOrCreateLabelId(String label)
throws ConstraintViolationKernelException
ConstraintViolationKernelException
long getLabelId(String label)
throws LabelNotFoundKernelException
LabelNotFoundKernelException will be thrown.
LabelNotFoundKernelException
String getLabelName(long labelId)
throws LabelNotFoundKernelException
LabelNotFoundKernelException
boolean addLabelToNode(long labelId,
long nodeId)
getOrCreateLabelId(String) or getLabelId(String).
boolean isLabelSetOnNode(long labelId,
long nodeId)
true if the node is labeled with the label, otherwise false.
Label ids are retrieved from getOrCreateLabelId(String) or
getLabelId(String).
Iterator<Long> getLabelsForNode(long nodeId)
nodeId.
If the node has no labels an empty Iterable will be returned.
boolean removeLabelFromNode(long labelId,
long nodeId)
getOrCreateLabelId(String) or getLabelId(String).
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||