看了下,要在代码里面建索引:
String[] fields = new String[]{"SmID"}; Map<String,String> map = dataset.getFieldIndexes(); boolean isExist = map.containsValue("SmID"); if (!isExist){ boolean isOk = dataset.buildFieldIndex(fields,"SmID_index"); }