public void getJDONREFIndex( JDONREFIndex jdonrefIndex, String[] listeDepartement, ArrayList<String> flags) throws SQLException, IOException, Exception { jdonrefIndex.setCodesDepartements(listeDepartement); if (flags.contains("COMMUNE")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.COMMUNE); if (flags.contains("TRONCON")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.TRONCON); // if (flags.contains("ADRESSE")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.ADRESSE); if (flags.contains("DEPARTEMENT")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.DEPARTEMENT); if (flags.contains("POIZON")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.POIZON); // if (flags.contains("VOIE")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.VOIE); if (flags.contains("PAYS")) jdonrefIndex.removeFlag(JDONREFIndex.FLAGS.PAYS); jdonrefIndex.reindex(); }
public JDONREFIndex initJDONREFIndex( String indexName, ArrayList<String> aliasName, String url, boolean verboseIndexation, boolean restart, boolean withGeometry, boolean withSwitchAlias, boolean parent, boolean nested, boolean csv, long millis) { JDONREFIndex jdonrefIndex = JDONREFIndex.getInstance(); jdonrefIndex.setParent(parent); jdonrefIndex.setNested(nested); jdonrefIndex.setCsv(csv); jdonrefIndex.setWithSwitchAlias(withSwitchAlias); jdonrefIndex.setIndex(indexName); jdonrefIndex.setAliasL(aliasName); jdonrefIndex.setUrl(url); jdonrefIndex.setVerbose(verboseIndexation); jdonrefIndex.setRestart(restart); jdonrefIndex.setWithGeometry(withGeometry); if (millis != 0) jdonrefIndex.setMillis(millis); return jdonrefIndex; }