私は現在、neo4j java-rest-binding プロジェクトを使用して、組み込みデータベースとリモート データベースのクライアント コードを同じにすることを試みています。これは私にとって非常に望ましいことです。
しかし、現在、リモートサーバーで実行すると、次のコードで問題が発生しています。
protected void createDefaultIndices(GraphDatabaseService graphDb) {
Schema schema = graphDb.schema();
Transaction tx = graphDb.beginTx();
try {
/* Folder index on path property. */
schema.indexCreator(DynamicLabel.label(FolderNode.FOLDER_LABEL))
.on(FolderNode.PATH_PROPERTY)
.create();
tx.success();
} catch (Exception x) {
x.printStackTrace();
} finally {
tx.finish();
}
}
これを実行しようとすると、次の例外が発生します。
Exception in thread "main" java.lang.AbstractMethodError:
org.neo4j.rest.graphdb.RestGraphDatabase.schema()Lorg/neo4j/graphdb/schema/Schema;
GraphDatabaseService の REST 実装用にスキーマ API が実装されていますか? それとも、これについて別の方法で行う必要がありますか?
ありがとう。