in src/main/java/org/apache/skywalking/banyandb/v1/client/RowEntity.java [63:80]
private Object convertToJavaType(BanyandbModel.TagValue tagValue) {
switch (tagValue.getValueCase()) {
case INT:
return tagValue.getInt().getValue();
case STR:
return tagValue.getStr().getValue();
case NULL:
return null;
case INT_ARRAY:
return tagValue.getIntArray().getValueList();
case STR_ARRAY:
return tagValue.getStrArray().getValueList();
case BINARY_DATA:
return tagValue.getBinaryData().toByteArray();
default:
throw new IllegalStateException("illegal type of TagValue");
}
}