Package org.neo4j.gds.api.schema
Class MutableRelationshipSchema
- java.lang.Object
-
- org.neo4j.gds.api.schema.MutableRelationshipSchema
-
- All Implemented Interfaces:
ElementSchema<RelationshipSchema,org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry,RelationshipPropertySchema>,RelationshipSchema
public class MutableRelationshipSchema extends java.lang.Object implements RelationshipSchema
-
-
Constructor Summary
Constructors Constructor Description MutableRelationshipSchema(java.util.Map<org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry> entries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableRelationshipSchemaaddProperty(org.neo4j.gds.RelationshipType relationshipType, Direction direction, java.lang.String propertyKey, org.neo4j.gds.api.nodeproperties.ValueType valueType, PropertyState propertyState)MutableRelationshipSchemaaddProperty(org.neo4j.gds.RelationshipType relationshipType, Direction direction, java.lang.String propertyKey, RelationshipPropertySchema propertySchema)MutableRelationshipSchemaaddRelationshipType(org.neo4j.gds.RelationshipType relationshipType, Direction direction)java.util.Set<org.neo4j.gds.RelationshipType>availableTypes()java.util.Map<org.neo4j.gds.RelationshipType,Direction>directions()static MutableRelationshipSchemaempty()java.util.Collection<MutableRelationshipSchemaEntry>entries()booleanequals(java.lang.Object o)MutableRelationshipSchemafilter(java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypesToKeep)static MutableRelationshipSchemafrom(RelationshipSchema fromSchema)MutableRelationshipSchemaEntryget(org.neo4j.gds.RelationshipType identifier)MutableRelationshipSchemaEntrygetOrCreateRelationshipType(org.neo4j.gds.RelationshipType relationshipType, Direction direction)inthashCode()booleanisUndirected()booleanisUndirected(org.neo4j.gds.RelationshipType type)voidremove(org.neo4j.gds.RelationshipType identifier)voidset(MutableRelationshipSchemaEntry entry)java.lang.ObjecttoMapOld()MutableRelationshipSchemaunion(RelationshipSchema 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
-
-
-
-
Constructor Detail
-
MutableRelationshipSchema
public MutableRelationshipSchema(java.util.Map<org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry> entries)
-
-
Method Detail
-
empty
public static MutableRelationshipSchema empty()
-
from
public static MutableRelationshipSchema from(RelationshipSchema fromSchema)
-
filter
public MutableRelationshipSchema filter(java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypesToKeep)
- Specified by:
filterin interfaceElementSchema<RelationshipSchema,org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry,RelationshipPropertySchema>
-
union
public MutableRelationshipSchema union(RelationshipSchema other)
- Specified by:
unionin interfaceElementSchema<RelationshipSchema,org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry,RelationshipPropertySchema>
-
entries
public java.util.Collection<MutableRelationshipSchemaEntry> entries()
- Specified by:
entriesin interfaceElementSchema<RelationshipSchema,org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry,RelationshipPropertySchema>
-
get
public MutableRelationshipSchemaEntry get(org.neo4j.gds.RelationshipType identifier)
- Specified by:
getin interfaceElementSchema<RelationshipSchema,org.neo4j.gds.RelationshipType,MutableRelationshipSchemaEntry,RelationshipPropertySchema>
-
availableTypes
public java.util.Set<org.neo4j.gds.RelationshipType> availableTypes()
- Specified by:
availableTypesin interfaceRelationshipSchema
-
isUndirected
public boolean isUndirected()
- Specified by:
isUndirectedin interfaceRelationshipSchema
-
isUndirected
public boolean isUndirected(org.neo4j.gds.RelationshipType type)
- Specified by:
isUndirectedin interfaceRelationshipSchema
-
directions
public java.util.Map<org.neo4j.gds.RelationshipType,Direction> directions()
- Specified by:
directionsin interfaceRelationshipSchema
-
toMapOld
public java.lang.Object toMapOld()
- Specified by:
toMapOldin interfaceRelationshipSchema
-
set
public void set(MutableRelationshipSchemaEntry entry)
-
remove
public void remove(org.neo4j.gds.RelationshipType identifier)
-
getOrCreateRelationshipType
public MutableRelationshipSchemaEntry getOrCreateRelationshipType(org.neo4j.gds.RelationshipType relationshipType, Direction direction)
-
addRelationshipType
public MutableRelationshipSchema addRelationshipType(org.neo4j.gds.RelationshipType relationshipType, Direction direction)
-
addProperty
public MutableRelationshipSchema addProperty(org.neo4j.gds.RelationshipType relationshipType, Direction direction, java.lang.String propertyKey, RelationshipPropertySchema propertySchema)
-
addProperty
public MutableRelationshipSchema addProperty(org.neo4j.gds.RelationshipType relationshipType, Direction direction, java.lang.String propertyKey, org.neo4j.gds.api.nodeproperties.ValueType valueType, PropertyState propertyState)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-