private static IndexType fromProtobuf()

in src/main/java/org/apache/skywalking/banyandb/v1/client/metadata/IndexRule.java [139:148]


        private static IndexType fromProtobuf(BanyandbDatabase.IndexRule.Type type) {
            switch (type) {
                case TYPE_TREE:
                    return TREE;
                case TYPE_INVERTED:
                    return INVERTED;
                default:
                    throw new IllegalArgumentException("unrecognized index type");
            }
        }