@Test public void testBuildDataPoint() { DataPoint dp = MiscUtils.buildDataPoint(10L, 10.1); assertEquals(10L, dp.getTimestamp(), 0); assertEquals(10.1, dp.getValue(), 0); dp = MiscUtils.buildDataPoint(10L, 10L); assertEquals(10L, dp.getTimestamp(), 0); assertEquals(10, dp.getLongValue(), 0); }
public static DataPoint buildDataPoint(long timestamp, long value) { DataPoint dp = new DataPoint(); dp.setTimestamp(timestamp); dp.setLongValue(value); return dp; }
MiscUtils { public static DataPoint buildDataPoint(long timestamp, long value) { DataPoint dp = new DataPoint(); dp.setTimestamp(timestamp); dp.setLongValue(value); return dp; } }
MiscUtils { public static DataPoint buildDataPoint(long timestamp, long value) { DataPoint dp = new DataPoint(); dp.setTimestamp(timestamp); dp.setLongValue(value); return dp; } private  MiscUtils(); }
MiscUtils { public static DataPoint buildDataPoint(long timestamp, long value) { DataPoint dp = new DataPoint(); dp.setTimestamp(timestamp); dp.setLongValue(value); return dp; } 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 DataPoint buildDataPoint(long timestamp, long value) { DataPoint dp = new DataPoint(); dp.setTimestamp(timestamp); dp.setLongValue(value); return dp; } 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);  }