Package hydra.pg.mapping
Class Schema<S,T,V>
- java.lang.Object
-
- hydra.pg.mapping.Schema<S,T,V>
-
public class Schema<S,T,V> extends java.lang.ObjectA set of mappings which translates between Hydra terms and annotations, and application-specific property graph types
-
-
Field Summary
Fields Modifier and Type Field Description AnnotationSchemaannotationsVdefaultEdgeIdVdefaultVertexIdCoder<S,S,Term,V>edgeIdsCoder<S,S,Type,T>edgeIdTypesstatic NameFIELD_NAME_ANNOTATIONSstatic NameFIELD_NAME_DEFAULT_EDGE_IDstatic NameFIELD_NAME_DEFAULT_VERTEX_IDstatic NameFIELD_NAME_EDGE_ID_TYPESstatic NameFIELD_NAME_EDGE_IDSstatic NameFIELD_NAME_PROPERTY_TYPESstatic NameFIELD_NAME_PROPERTY_VALUESstatic NameFIELD_NAME_VERTEX_ID_TYPESstatic NameFIELD_NAME_VERTEX_IDSCoder<S,S,Type,T>propertyTypesCoder<S,S,Term,V>propertyValuesstatic NameTYPE_NAMECoder<S,S,Term,V>vertexIdsCoder<S,S,Type,T>vertexIdTypes
-
Constructor Summary
Constructors Constructor Description Schema(Coder<S,S,Type,T> vertexIdTypes, Coder<S,S,Term,V> vertexIds, Coder<S,S,Type,T> edgeIdTypes, Coder<S,S,Term,V> edgeIds, Coder<S,S,Type,T> propertyTypes, Coder<S,S,Term,V> propertyValues, AnnotationSchema annotations, V defaultVertexId, V defaultEdgeId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()SchemawithAnnotations(AnnotationSchema annotations)SchemawithDefaultEdgeId(V defaultEdgeId)SchemawithDefaultVertexId(V defaultVertexId)SchemawithEdgeIds(Coder<S,S,Term,V> edgeIds)SchemawithEdgeIdTypes(Coder<S,S,Type,T> edgeIdTypes)SchemawithPropertyTypes(Coder<S,S,Type,T> propertyTypes)SchemawithPropertyValues(Coder<S,S,Term,V> propertyValues)SchemawithVertexIds(Coder<S,S,Term,V> vertexIds)SchemawithVertexIdTypes(Coder<S,S,Type,T> vertexIdTypes)
-
-
-
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
-
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
-
withAnnotations
public Schema withAnnotations(AnnotationSchema annotations)
-
-