@JsonCreator
public ResourceOptions(@JsonProperty("default_analyzer") String analyzer,
@JsonProperty("resources") Map<String, Set<String>> resources)
throws InstantiationException, IllegalAccessException, ClassNotFoundException {
if (analyzer == null) {
this.defaultAnalyzer = new WhitespaceAnalyzer();
} else {
this.defaultAnalyzer = (Analyzer) Class.forName(analyzer).newInstance();
}
if (resources != null) {
this.resources.putAll(resources);
}
}
ResourceOptions.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:cassandra-fhir-index
作者:
评论列表
文章目录