Class Schema<S,​T,​V>


  • public class Schema<S,​T,​V>
    extends java.lang.Object
    A set of mappings which translates between Hydra terms and annotations, and application-specific property graph types
    • Field Detail

      • TYPE_NAME

        public static final Name TYPE_NAME
      • FIELD_NAME_VERTEX_ID_TYPES

        public static final Name FIELD_NAME_VERTEX_ID_TYPES
      • FIELD_NAME_VERTEX_IDS

        public static final Name FIELD_NAME_VERTEX_IDS
      • FIELD_NAME_EDGE_ID_TYPES

        public static final Name FIELD_NAME_EDGE_ID_TYPES
      • FIELD_NAME_EDGE_IDS

        public static final Name FIELD_NAME_EDGE_IDS
      • FIELD_NAME_PROPERTY_TYPES

        public static final Name FIELD_NAME_PROPERTY_TYPES
      • FIELD_NAME_PROPERTY_VALUES

        public static final Name FIELD_NAME_PROPERTY_VALUES
      • FIELD_NAME_ANNOTATIONS

        public static final Name FIELD_NAME_ANNOTATIONS
      • FIELD_NAME_DEFAULT_VERTEX_ID

        public static final Name FIELD_NAME_DEFAULT_VERTEX_ID
      • FIELD_NAME_DEFAULT_EDGE_ID

        public static final Name FIELD_NAME_DEFAULT_EDGE_ID
      • vertexIdTypes

        public final Coder<S,​S,​Type,​T> vertexIdTypes
      • vertexIds

        public final Coder<S,​S,​Term,​V> vertexIds
      • edgeIdTypes

        public final Coder<S,​S,​Type,​T> edgeIdTypes
      • propertyTypes

        public final Coder<S,​S,​Type,​T> propertyTypes
      • propertyValues

        public final Coder<S,​S,​Term,​V> propertyValues
      • defaultVertexId

        public final V defaultVertexId
      • defaultEdgeId

        public final V defaultEdgeId
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • withVertexIdTypes

        public Schema withVertexIdTypes​(Coder<S,​S,​Type,​T> vertexIdTypes)
      • withEdgeIdTypes

        public Schema withEdgeIdTypes​(Coder<S,​S,​Type,​T> edgeIdTypes)
      • withPropertyTypes

        public Schema withPropertyTypes​(Coder<S,​S,​Type,​T> propertyTypes)
      • withPropertyValues

        public Schema withPropertyValues​(Coder<S,​S,​Term,​V> propertyValues)
      • withDefaultVertexId

        public Schema withDefaultVertexId​(V defaultVertexId)
      • withDefaultEdgeId

        public Schema withDefaultEdgeId​(V defaultEdgeId)