GraphBackedTypeStore implements ITypeStore { @Override @GraphTransaction public void store(TypeSystem typeSystem, ImmutableList<String> typeNames) throws AtlasException { Map<String, AtlasVertex> typeVertices = getOrCreateTypeVertices(typeSystem, typeNames); TypePersistenceVisitor visitor = new TypePersistenceVisitor(this, typeVertices, typeSystem); processTypes(typeNames, typeSystem, visitor); } @Inject  GraphBackedTypeStore(AtlasGraph atlasGraph); @Override @GraphTransaction void store(TypeSystem typeSystem, ImmutableList<String> typeNames); @Override @GraphTransaction TypesDef restore(); @Override @GraphTransaction TypesDef restoreType(String typeName); static final String VERTEX_TYPE; static final String SUPERTYPE_EDGE_LABEL; }
@Test public void testStore() throws AtlasException { ImmutableList<String> typeNames = ts.getTypeNames(); typeStore.store(ts, typeNames); dumpGraph(); }