private TitanType getEdgeType( String name, Map<String, TitanType> etCache, InternalTitanTransaction tx) { TitanType et = etCache.get(name); if (et == null) { et = tx.getType(name); etCache.put(name, et); } return et; }
private static TypeSignature getSignature( InternalTitanTransaction tx, TitanType et, Map<TitanType, TypeSignature> signatures) { TypeSignature ets = signatures.get(et); if (ets == null) { ets = new TypeSignature(et, tx); signatures.put(et, ets); } return ets; }