graphDb.createVertexType("Person");
OrientVertexType type= graphDb.getVertexType("Person");type.createProperty("name", OType.INTEGER).createIndex("UNIQUE_HASH_INDEX");type.createProperty("age", OType.INTEGER).createIndex("NOTUNIQUE"); type.getProperty("age").createIndex("NOTUNIQUE_HASH_INDEX");
OrientGraphNoTx g = new OrientGraphNoTx(path);
OClass person = g.getRawGraph().getMetadata().getSchema().getClass("Person");
person.createProperty("name", OType.INTEGER).createIndex("UNIQUE_HASH_INDEX");
person.createProperty("age", OType.INTEGER).createIndex("NOTUNIQUE");
person.createIndex("age2", OClass.INDEX_TYPE.NOTUNIQUE_HASH_INDEX, "age");
g.shutdown();