throw new AssertionError();
}
//Used by Faunus - DON'T REMOVE
public void readRelation(RelationFactory factory, Entry data, StandardTitanTx tx) {
RelationCache relation = readRelation(factory.getVertexID(), data, false, tx);
assert relation.hasProperties();
factory.setDirection(relation.direction);
TitanType type = tx.getExistingType(relation.typeId);
factory.setType(type);
factory.setRelationID(relation.relationId);
if (type.isPropertyKey()) {
factory.setValue(relation.getValue());
} else if (type.isEdgeLabel()) {
factory.setOtherVertexID(relation.getOtherVertexId());
} else throw new AssertionError();
//Add properties
for (LongObjectCursor<Object> entry : relation) {
TitanType pt = tx.getExistingType(entry.key);
if (entry.value != null) {