/** * Adds the points (compressed byte array) to the given builder * * @param decompressedBytes the compressed bytes holding the data points * @param timeSeriesStart the start of the time series * @param timeSeriesEnd the end of the time series * @param builder the time series builder */ public static void from(final InputStream decompressedBytes, long timeSeriesStart, long timeSeriesEnd, MetricTimeSeries.Builder builder) { from(decompressedBytes, timeSeriesStart, timeSeriesEnd, timeSeriesStart, timeSeriesEnd, builder); }
/** * Adds the points (compressed byte array) to the given builder * * @param decompressedBytes the compressed bytes holding the data points * @param timeSeriesStart the start of the time series * @param timeSeriesEnd the end of the time series * @param builder the time series builder */ public static void from(final InputStream decompressedBytes, long timeSeriesStart, long timeSeriesEnd, long almost_equals_ms, MetricTimeSeries.Builder builder) { from(decompressedBytes, timeSeriesStart, timeSeriesEnd, timeSeriesStart, timeSeriesEnd, almost_equals_ms, builder); }
/** * Adds the points (compressed byte array) to the given builder * * @param decompressedBytes the compressed bytes holding the data points * @param timeSeriesStart the start of the time series * @param timeSeriesEnd the end of the time series * @param from including points from * @param to including points to * @param builder the time series builder */ public static void from(final InputStream decompressedBytes, long timeSeriesStart, long timeSeriesEnd, long from, long to, MetricTimeSeries.Builder builder) { from(decompressedBytes, timeSeriesStart, timeSeriesEnd, from, to, ALMOST_EQUALS_OFFSET_MS, builder); }
private void fromProtocolBuffers(BinaryTimeSeries binaryTimeSeries, long queryStart, long queryEnd, MetricTimeSeries.Builder builder) { final InputStream decompressed = Compression.decompressToStream(binaryTimeSeries.getPoints()); ProtoBufKassiopeiaSimpleSerializer.from(decompressed, binaryTimeSeries.getStart(), binaryTimeSeries.getEnd(), queryStart, queryEnd, builder); }