org.apache.pinot.common.Utils.toCamelCase()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(169)

本文整理了Java中org.apache.pinot.common.Utils.toCamelCase()方法的一些代码示例,展示了Utils.toCamelCase()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.toCamelCase()方法的具体详情如下:
包路径:org.apache.pinot.common.Utils
类名称:Utils
方法名:toCamelCase

Utils.toCamelCase介绍

[英]Takes a string, removes all characters that are not letters or digits and capitalizes the next letter following a series of characters that are not letters or digits. For example, toCamelCase("Hello world!") returns "HelloWorld".
[中]获取一个字符串,删除所有非字母或数字的字符,并将一系列非字母或数字的字符后的下一个字母大写。例如,toCamelCase(“你好,世界!”)返回“HelloWorld”。

代码示例

代码示例来源:origin: apache/incubator-pinot

ServerGauge(String unit, boolean global) {
 this.unit = unit;
 this.global = global;
 this.gaugeName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

BrokerMeter(String unit, boolean global) {
 this.unit = unit;
 this.global = global;
 this.brokerMeterName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

ControllerGauge(String unit, boolean global) {
 this.unit = unit;
 this.global = global;
 this.gaugeName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

MinionMeter(String unit, boolean global) {
 _meterName = Utils.toCamelCase(name().toLowerCase());
 _unit = unit;
 _global = global;
}

代码示例来源:origin: apache/incubator-pinot

ServerMeter(String unit, boolean global) {
 this.unit = unit;
 this.global = global;
 this.meterName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

BrokerTimer(boolean global) {
 this.global = global;
 this.timerName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

BrokerGauge(String unit, boolean global) {
 this.unit = unit;
 this.global = global;
 this.brokerGaugeName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

ControllerMeter(String unit, boolean global) {
 this.unit = unit;
 this.global = global;
 this.brokerMeterName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

MinionGauge(String unit, boolean global) {
 _gaugeName = Utils.toCamelCase(name().toLowerCase());
 _unit = unit;
 _global = global;
}

代码示例来源:origin: apache/incubator-pinot

ServerTimer(String unit, boolean global) {
 this.global = global;
 this.timerName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

ControllerTimer(String unit, boolean global) {
 this.global = global;
 this.timerName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

MinionTimer(boolean global) {
 _timerName = Utils.toCamelCase(name().toLowerCase());
 _global = global;
}

代码示例来源:origin: apache/incubator-pinot

BrokerQueryPhase() {
 queryPhaseName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

MinionQueryPhase() {
 _queryPhaseName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

ServerQueryPhase() {
 queryPhaseName = Utils.toCamelCase(name().toLowerCase());
}

代码示例来源:origin: apache/incubator-pinot

@Test
public void testToCamelCase() {
 Assert.assertEquals(Utils.toCamelCase("Hello world!"), "HelloWorld");
 Assert.assertEquals(Utils.toCamelCase("blah blah blah"), "blahBlahBlah");
 Assert.assertEquals(Utils.toCamelCase("the quick __--???!!! brown   fox?"), "theQuickBrownFox");
}

相关文章