UpdateJSON.createIndex()
UpdateJSON.createIndex()
メソッドは、ストア内にJSON索引を作成します。UpdateJSON.updateTableWithIndex()が実行される前に実行する必要があります。
JSON索引の詳細は、JSON索引を参照してください。
// Creates a JSON index. This method must be
// run before updateTableWithIndex() is run.
private void createIndex(KVStore kvstore) {
System.out.println("Creating index....");
String statement = "CREATE INDEX IF NOT EXISTS ";
statement += "idx_home_city on personContacts ";
statement += "(person.address.home.city AS String)";
runDDL(kvstore, statement);
}