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.Object
A set of mappings which translates between Hydra terms and annotations, and application-specific property graph types
-
-
Field Summary
Fields Modifier and Type Field Description AnnotationSchema
annotations
V
defaultEdgeId
V
defaultVertexId
Coder<S,S,Term,V>
edgeIds
Coder<S,S,Type,T>
edgeIdTypes
static Name
FIELD_NAME_ANNOTATIONS
static Name
FIELD_NAME_DEFAULT_EDGE_ID
static Name
FIELD_NAME_DEFAULT_VERTEX_ID
static Name
FIELD_NAME_EDGE_ID_TYPES
static Name
FIELD_NAME_EDGE_IDS
static Name
FIELD_NAME_PROPERTY_TYPES
static Name
FIELD_NAME_PROPERTY_VALUES
static Name
FIELD_NAME_VERTEX_ID_TYPES
static Name
FIELD_NAME_VERTEX_IDS
Coder<S,S,Type,T>
propertyTypes
Coder<S,S,Term,V>
propertyValues
static Name
TYPE_NAME
Coder<S,S,Term,V>
vertexIds
Coder<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 boolean
equals(java.lang.Object other)
int
hashCode()
Schema
withAnnotations(AnnotationSchema annotations)
Schema
withDefaultEdgeId(V defaultEdgeId)
Schema
withDefaultVertexId(V defaultVertexId)
Schema
withEdgeIds(Coder<S,S,Term,V> edgeIds)
Schema
withEdgeIdTypes(Coder<S,S,Type,T> edgeIdTypes)
Schema
withPropertyTypes(Coder<S,S,Type,T> propertyTypes)
Schema
withPropertyValues(Coder<S,S,Term,V> propertyValues)
Schema
withVertexIds(Coder<S,S,Term,V> vertexIds)
Schema
withVertexIdTypes(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withAnnotations
public Schema withAnnotations(AnnotationSchema annotations)
-
-