Package org.neo4j.gds.api.schema
Interface ElementSchema<SELF extends ElementSchema<SELF,ELEMENT_IDENTIFIER,PROPERTY_SCHEMA>,ELEMENT_IDENTIFIER extends ElementIdentifier,PROPERTY_SCHEMA extends PropertySchema>
-
- All Known Subinterfaces:
NodeSchema
,RelationshipSchema
public interface ElementSchema<SELF extends ElementSchema<SELF,ELEMENT_IDENTIFIER,PROPERTY_SCHEMA>,ELEMENT_IDENTIFIER extends ElementIdentifier,PROPERTY_SCHEMA extends PropertySchema>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Set<java.lang.String>
allProperties()
SELF
filter(java.util.Set<ELEMENT_IDENTIFIER> elementIdentifieresToKeep)
default java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>>
filterProperties(java.util.Set<ELEMENT_IDENTIFIER> identifiersToKeep)
default boolean
hasProperties()
default boolean
hasProperties(ELEMENT_IDENTIFIER elementIdentifier)
java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>>
properties()
default java.util.List<PROPERTY_SCHEMA>
propertySchemasFor(ELEMENT_IDENTIFIER elementIdentifier)
default java.util.Map<java.lang.String,java.lang.Object>
toMap()
SELF
union(SELF other)
default java.util.Map<java.lang.String,PROPERTY_SCHEMA>
unionProperties()
Returns a union of all properties in the given schema.default java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>>
unionSchema(java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>> rightProperties)
For internal use only!
-
-
-
Method Detail
-
properties
java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>> properties()
-
filter
SELF filter(java.util.Set<ELEMENT_IDENTIFIER> elementIdentifieresToKeep)
-
allProperties
@Derived default java.util.Set<java.lang.String> allProperties()
-
hasProperties
@Derived default boolean hasProperties()
-
hasProperties
@Default default boolean hasProperties(ELEMENT_IDENTIFIER elementIdentifier)
-
propertySchemasFor
@Default default java.util.List<PROPERTY_SCHEMA> propertySchemasFor(ELEMENT_IDENTIFIER elementIdentifier)
-
toMap
@Derived default java.util.Map<java.lang.String,java.lang.Object> toMap()
-
filterProperties
@Derived default java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>> filterProperties(java.util.Set<ELEMENT_IDENTIFIER> identifiersToKeep)
-
unionProperties
@Lazy default java.util.Map<java.lang.String,PROPERTY_SCHEMA> unionProperties()
Returns a union of all properties in the given schema. If a property with the same key exists for more then one label, this method makes sure they have the same type.
-
unionSchema
default java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>> unionSchema(java.util.Map<ELEMENT_IDENTIFIER,java.util.Map<java.lang.String,PROPERTY_SCHEMA>> rightProperties)
For internal use only!
-
-