in src/main/java/org/apache/skywalking/banyandb/v1/client/BanyanDBClient.java [1044:1064]
private List<IndexRule> findIndexRulesByGroupAndBindingName(String group, String bindingName) throws
BanyanDBException {
IndexRuleBindingMetadataRegistry irbRegistry = new IndexRuleBindingMetadataRegistry(checkNotNull(this.channel));
IndexRuleBinding irb;
try {
irb = irbRegistry.get(group, bindingName);
} catch (BanyanDBException ex) {
if (ex.getStatus().equals(Status.Code.NOT_FOUND)) {
return Collections.emptyList();
}
throw ex;
}
if (irb == null) {
return Collections.emptyList();
}
List<IndexRule> indexRules = new ArrayList<>(irb.getRulesList().size());
return indexRules;
}