Package org.neo4j.gds.api.schema
Class MutableNodeSchema
- java.lang.Object
-
- org.neo4j.gds.api.schema.MutableNodeSchema
-
- All Implemented Interfaces:
ElementSchema<NodeSchema,org.neo4j.gds.NodeLabel,MutableNodeSchemaEntry,PropertySchema>,NodeSchema
public final class MutableNodeSchema extends java.lang.Object implements NodeSchema
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableNodeSchemaaddLabel(org.neo4j.gds.NodeLabel nodeLabel)MutableNodeSchemaaddLabel(org.neo4j.gds.NodeLabel nodeLabel, java.util.Map<java.lang.String,PropertySchema> nodeProperties)MutableNodeSchemaaddProperty(org.neo4j.gds.NodeLabel nodeLabel, java.lang.String propertyKey, org.neo4j.gds.api.nodeproperties.ValueType valueType)MutableNodeSchemaaddProperty(org.neo4j.gds.NodeLabel nodeLabel, java.lang.String propertyName, PropertySchema propertySchema)java.util.Set<org.neo4j.gds.NodeLabel>availableLabels()booleancontainsOnlyAllNodesLabel()static MutableNodeSchemaempty()java.util.Collection<MutableNodeSchemaEntry>entries()booleanequals(java.lang.Object o)MutableNodeSchemafilter(java.util.Set<org.neo4j.gds.NodeLabel> labelsToKeep)static MutableNodeSchemafrom(NodeSchema fromSchema)MutableNodeSchemaEntryget(org.neo4j.gds.NodeLabel identifier)MutableNodeSchemaEntrygetOrCreateLabel(org.neo4j.gds.NodeLabel key)inthashCode()voidremove(org.neo4j.gds.NodeLabel identifier)voidset(MutableNodeSchemaEntry entry)MutableNodeSchemaunion(NodeSchema other)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.gds.api.schema.ElementSchema
allProperties, allProperties, hasProperties, hasProperty, propertySchemasFor, toMap, unionEntries, unionProperties
-
-
-
-
Method Detail
-
empty
public static MutableNodeSchema empty()
-
from
public static MutableNodeSchema from(NodeSchema fromSchema)
-
availableLabels
public java.util.Set<org.neo4j.gds.NodeLabel> availableLabels()
- Specified by:
availableLabelsin interfaceNodeSchema
-
containsOnlyAllNodesLabel
public boolean containsOnlyAllNodesLabel()
- Specified by:
containsOnlyAllNodesLabelin interfaceNodeSchema
-
filter
public MutableNodeSchema filter(java.util.Set<org.neo4j.gds.NodeLabel> labelsToKeep)
- Specified by:
filterin interfaceElementSchema<NodeSchema,org.neo4j.gds.NodeLabel,MutableNodeSchemaEntry,PropertySchema>- Specified by:
filterin interfaceNodeSchema
-
union
public MutableNodeSchema union(NodeSchema other)
- Specified by:
unionin interfaceElementSchema<NodeSchema,org.neo4j.gds.NodeLabel,MutableNodeSchemaEntry,PropertySchema>
-
entries
public java.util.Collection<MutableNodeSchemaEntry> entries()
- Specified by:
entriesin interfaceElementSchema<NodeSchema,org.neo4j.gds.NodeLabel,MutableNodeSchemaEntry,PropertySchema>
-
get
public MutableNodeSchemaEntry get(org.neo4j.gds.NodeLabel identifier)
- Specified by:
getin interfaceElementSchema<NodeSchema,org.neo4j.gds.NodeLabel,MutableNodeSchemaEntry,PropertySchema>
-
set
public void set(MutableNodeSchemaEntry entry)
-
remove
public void remove(org.neo4j.gds.NodeLabel identifier)
-
getOrCreateLabel
public MutableNodeSchemaEntry getOrCreateLabel(org.neo4j.gds.NodeLabel key)
-
addLabel
public MutableNodeSchema addLabel(org.neo4j.gds.NodeLabel nodeLabel)
-
addLabel
public MutableNodeSchema addLabel(org.neo4j.gds.NodeLabel nodeLabel, java.util.Map<java.lang.String,PropertySchema> nodeProperties)
-
addProperty
public MutableNodeSchema addProperty(org.neo4j.gds.NodeLabel nodeLabel, java.lang.String propertyName, PropertySchema propertySchema)
-
addProperty
public MutableNodeSchema addProperty(org.neo4j.gds.NodeLabel nodeLabel, java.lang.String propertyKey, org.neo4j.gds.api.nodeproperties.ValueType valueType)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-