@Test public void testSplitNormalizeString() { String[] splits = MiscUtils.splitAndNormalizeString("/data/drive1, /data/drive2, /data/drive3"); for (String split : splits) { assertTrue(!split.contains(" ")); } assertEquals(3, splits.length); splits = MiscUtils.splitAndNormalizeString("/data/drive1,/data/drive2,/data/drive3"); for (String split : splits) { assertTrue(!split.contains(" ")); } assertEquals(3, splits.length); }
public static String[] splitAndNormalizeString(String input) { String[] split = input.split(","); for (int i = 0; i < split.length; i++) { String str = split[i]; split[i] = str.trim(); } return split; }
MiscUtils { public static String[] splitAndNormalizeString(String input) { String[] split = input.split(","); for (int i = 0; i < split.length; i++) { String str = split[i]; split[i] = str.trim(); } return split; } }
MiscUtils { public static String[] splitAndNormalizeString(String input) { String[] split = input.split(","); for (int i = 0; i < split.length; i++) { String str = split[i]; split[i] = str.trim(); } return split; } private  MiscUtils(); }
MiscUtils { public static String[] splitAndNormalizeString(String input) { String[] split = input.split(","); for (int i = 0; i < split.length; i++) { String str = split[i]; split[i] = str.trim(); } return split; } private  MiscUtils(); static long bucketCounter(Series series); static String[] splitAndNormalizeString(String input); static List<String> readAllLines(File file); static DataPoint buildDataPoint(long timestamp, long value); static DataPoint buildDataPoint(long timestamp, double value); static void ls(File file); static boolean delete(File file); static String tagsToString(List<Tag> tags); static String tagToString(List<String> tags); static TagFilter buildTagFilter(String tagFilter); static SimpleTagFilter buildSimpleFilter(String item); static FunctionIteratorFactory createIteratorChain(String[] parts, int startIndex); static Function createFunctionChain(String[] parts, int startIndex); static TargetSeries extractTargetFromQuery(String query); static Point buildDP(String dbName, String measurementName, List<String> valueFieldName, List<Tag> tags,
			long timestamp, List<Long> value, List<Boolean> fp); static String printBuffer(ByteBuffer buffer, int counter); static void writeStringToBuffer(String str, ByteBuffer buf); static void writeByteStringToBuffer(byte[] str, ByteBuffer buf); static ByteString getByteStringFromBuffer(ByteBuffer buf); static String getStringFromBuffer(ByteBuffer buf); static Point buildDataPoint(String dbName, String measurementName, List<String> valueFieldName,
			List<Tag> taglist, long timestamp, List<Long> values, List<Boolean> fp); static Point buildDataPoint(String dbName, String measurementName, String valueFieldName, List<Tag> taglist,
			long timestamp, long value); static Point buildDataPoint(String dbName, String measurementName, String valueFieldName, List<Tag> taglist,
			long timestamp, double value); static int tagHashCode(List<Tag> tags); }
MiscUtils { public static String[] splitAndNormalizeString(String input) { String[] split = input.split(","); for (int i = 0; i < split.length; i++) { String str = split[i]; split[i] = str.trim(); } return split; } private  MiscUtils(); static long bucketCounter(Series series); static String[] splitAndNormalizeString(String input); static List<String> readAllLines(File file); static DataPoint buildDataPoint(long timestamp, long value); static DataPoint buildDataPoint(long timestamp, double value); static void ls(File file); static boolean delete(File file); static String tagsToString(List<Tag> tags); static String tagToString(List<String> tags); static TagFilter buildTagFilter(String tagFilter); static SimpleTagFilter buildSimpleFilter(String item); static FunctionIteratorFactory createIteratorChain(String[] parts, int startIndex); static Function createFunctionChain(String[] parts, int startIndex); static TargetSeries extractTargetFromQuery(String query); static Point buildDP(String dbName, String measurementName, List<String> valueFieldName, List<Tag> tags,
			long timestamp, List<Long> value, List<Boolean> fp); static String printBuffer(ByteBuffer buffer, int counter); static void writeStringToBuffer(String str, ByteBuffer buf); static void writeByteStringToBuffer(byte[] str, ByteBuffer buf); static ByteString getByteStringFromBuffer(ByteBuffer buf); static String getStringFromBuffer(ByteBuffer buf); static Point buildDataPoint(String dbName, String measurementName, List<String> valueFieldName,
			List<Tag> taglist, long timestamp, List<Long> values, List<Boolean> fp); static Point buildDataPoint(String dbName, String measurementName, String valueFieldName, List<Tag> taglist,
			long timestamp, long value); static Point buildDataPoint(String dbName, String measurementName, String valueFieldName, List<Tag> taglist,
			long timestamp, double value); static int tagHashCode(List<Tag> tags);  }