public class MetaData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<PropertyMetaData>> |
edgeMetaData
Mapping between a graph labels and their associated property meta data.
|
protected Map<String,List<PropertyMetaData>> |
graphMetaData
Mapping between a graph labels and their associated property meta data.
|
static String |
PROPERTY_TOKEN_DELIMITER
Used to separate property tokens (property-key, property-type)
|
protected Map<String,List<PropertyMetaData>> |
vertexMetaData
Mapping between a graph labels and their associated property meta data.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MetaData(Map<String,List<PropertyMetaData>> graphMetaData,
Map<String,List<PropertyMetaData>> vertexMetaData,
Map<String,List<PropertyMetaData>> edgeMetaData)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getClassFromTypeString(String typeString)
Get the class corresponding to a type string.
|
Set<String> |
getEdgeLabels()
Returns the edge labels available in the meta data.
|
List<PropertyMetaData> |
getEdgePropertyMetaData(String label)
Returns the property meta data associated with the specified edge label.
|
Set<String> |
getGraphLabels()
Returns the graph labels available in the meta data.
|
List<PropertyMetaData> |
getGraphPropertyMetaData(String label)
Returns the property meta data associated with the specified graph label.
|
static String |
getTypeString(PropertyValue propertyValue)
Returns the type string for the specified property value.
|
Set<String> |
getVertexLabels()
Returns the vertex labels available in the meta data.
|
List<PropertyMetaData> |
getVertexPropertyMetaData(String label)
Returns the property meta data associated with the specified vertex label.
|
public static final String PROPERTY_TOKEN_DELIMITER
protected Map<String,List<PropertyMetaData>> graphMetaData
protected Map<String,List<PropertyMetaData>> vertexMetaData
protected Map<String,List<PropertyMetaData>> edgeMetaData
protected MetaData(Map<String,List<PropertyMetaData>> graphMetaData, Map<String,List<PropertyMetaData>> vertexMetaData, Map<String,List<PropertyMetaData>> edgeMetaData)
graphMetaData - a map between each graph label and its property metadatavertexMetaData - a map between each vertex label and its property metadataedgeMetaData - a map between each edge label and its property metadatapublic static Class<?> getClassFromTypeString(String typeString)
typeString - a type stringpublic Set<String> getGraphLabels()
public Set<String> getVertexLabels()
public Set<String> getEdgeLabels()
public List<PropertyMetaData> getGraphPropertyMetaData(String label)
label - graph labelpublic List<PropertyMetaData> getVertexPropertyMetaData(String label)
label - vertex labelpublic List<PropertyMetaData> getEdgePropertyMetaData(String label)
label - edge labelpublic static String getTypeString(PropertyValue propertyValue)
propertyValue - property valueCopyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.