use of com.actiontech.dble.config.loader.ucoreprocess.bean.UKvBean in project dble by actiontech.
the class ClusterUcoreSender method getKeyTree.
public static List<UKvBean> getKeyTree(String key) {
if (!(key.charAt(key.length() - 1) == '/')) {
key = key + "/";
}
List<UKvBean> result = new ArrayList<UKvBean>();
UcoreInterface.GetKvTreeInput input = UcoreInterface.GetKvTreeInput.newBuilder().setKey(key).build();
if (stub == null) {
init();
}
UcoreInterface.GetKvTreeOutput output = stub.getKvTree(input);
for (int i = 0; i < output.getKeysCount(); i++) {
UKvBean bean = new UKvBean(output.getKeys(i), output.getValues(i), output.getIndex());
result.add(bean);
}
return result;
}
Aggregations