use of com.thinkaurelius.titan.graphdb.internal.RelationCategory in project titan by thinkaurelius.
the class IDManagementTest method testEdgeTypeWriting.
public void testEdgeTypeWriting(long etid) {
IDHandler.DirectionID[] dir = IDManager.VertexIDType.EdgeLabel.is(etid) ? new IDHandler.DirectionID[] { IDHandler.DirectionID.EDGE_IN_DIR, IDHandler.DirectionID.EDGE_OUT_DIR } : new IDHandler.DirectionID[] { IDHandler.DirectionID.PROPERTY_DIR };
RelationCategory relCat = IDManager.VertexIDType.EdgeLabel.is(etid) ? RelationCategory.EDGE : RelationCategory.PROPERTY;
boolean invisible = IDManager.isSystemRelationTypeId(etid);
for (IDHandler.DirectionID d : dir) {
StaticBuffer b = IDHandler.getRelationType(etid, d, invisible);
IDHandler.RelationTypeParse parse = IDHandler.readRelationType(b.asReadBuffer());
assertEquals(d, parse.dirID);
assertEquals(etid, parse.typeId);
}
}
Aggregations