public class RoleTypeConverter extends Object implements TypeConverter<RoleType>
Implementation of TypeConverter allowing for conversion of role types to compatible types.
| Constructor and Description |
|---|
RoleTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<RelationType,RoleType> |
toRelationMultimap(RoleType role)
convert a given type to a map of relation types in which it can play roles
and the corresponding role types including entity type hierarchy
|
public com.google.common.collect.Multimap<RelationType,RoleType> toRelationMultimap(RoleType role)
TypeConvertertoRelationMultimap in interface TypeConverter<RoleType>role - to be convertedCopyright © 2017 Grakn Labs Ltd. All rights reserved.