Package hydra.pg.mapping
Class Schema<S,T,V>
- java.lang.Object
-
- hydra.pg.mapping.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 Summary
Fields Modifier and Type Field Description AnnotationSchemaannotationsstatic NameANNOTATIONSstatic NameDEFAULT_EDGE_IDstatic NameDEFAULT_VERTEX_IDVdefaultEdgeIdVdefaultVertexIdstatic NameEDGE_ID_TYPESstatic NameEDGE_IDSCoder<Term,V>edgeIdsCoder<Type,T>edgeIdTypesstatic NamePROPERTY_TYPESstatic NamePROPERTY_VALUESCoder<Type,T>propertyTypesCoder<Term,V>propertyValuesstatic NameTYPE_static NameVERTEX_ID_TYPESstatic NameVERTEX_IDSCoder<Term,V>vertexIdsCoder<Type,T>vertexIdTypes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Schema other)booleanequals(java.lang.Object other)inthashCode()SchemawithAnnotations(AnnotationSchema annotations)SchemawithDefaultEdgeId(V defaultEdgeId)SchemawithDefaultVertexId(V defaultVertexId)SchemawithEdgeIds(Coder<Term,V> edgeIds)SchemawithEdgeIdTypes(Coder<Type,T> edgeIdTypes)SchemawithPropertyTypes(Coder<Type,T> propertyTypes)SchemawithPropertyValues(Coder<Term,V> propertyValues)SchemawithVertexIds(Coder<Term,V> vertexIds)SchemawithVertexIdTypes(Coder<Type,T> vertexIdTypes)
-
-
-
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
-
annotations
public final AnnotationSchema annotations
-
defaultVertexId
public final V defaultVertexId
-
defaultEdgeId
public final V defaultEdgeId
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(Schema other)
- Specified by:
compareToin interfacejava.lang.Comparable<S>
-
withAnnotations
public Schema withAnnotations(AnnotationSchema annotations)
-
-