Class Schema<S,​T,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Schema<S,​T,​V>>

    public class Schema<S,​T,​V>
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<Schema<S,​T,​V>>
    A set of mappings which translates between Hydra terms and annotations, and application-specific property graph types
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
      • VERTEX_ID_TYPES

        public static final Name VERTEX_ID_TYPES
      • VERTEX_IDS

        public static final Name VERTEX_IDS
      • EDGE_ID_TYPES

        public static final Name EDGE_ID_TYPES
      • EDGE_IDS

        public static final Name EDGE_IDS
      • PROPERTY_TYPES

        public static final Name PROPERTY_TYPES
      • PROPERTY_VALUES

        public static final Name PROPERTY_VALUES
      • ANNOTATIONS

        public static final Name ANNOTATIONS
      • DEFAULT_VERTEX_ID

        public static final Name DEFAULT_VERTEX_ID
      • DEFAULT_EDGE_ID

        public static final Name DEFAULT_EDGE_ID
      • vertexIdTypes

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

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

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

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

        public final Coder<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
      • compareTo

        public int compareTo​(Schema other)
        Specified by:
        compareTo in interface java.lang.Comparable<S>
      • withVertexIdTypes

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

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

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

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

        public Schema withDefaultVertexId​(V defaultVertexId)
      • withDefaultEdgeId

        public Schema withDefaultEdgeId​(V defaultEdgeId)