@OperationsPerInvocation(100000) public void encodingBenchmark(DataGenerator dg) { ByteBufferBitOutput output = new ByteBufferBitOutput(); Compressor c = new Compressor(dg.blockStart, output); for(int j = 0; j < dg.amountOfPoints; j++) { c.addValue(dg.uncompressedBuffer.getLong(), dg.uncompressedBuffer.getDouble()); } c.close(); dg.uncompressedBuffer.rewind(); }
@OperationsPerInvocation(100000) public void encodingBenchmark(DataGenerator dg) { ByteBufferBitOutput output = new ByteBufferBitOutput(); Compressor c = new Compressor(dg.blockStart, output); for(int j = 0; j < dg.amountOfPoints; j++) { c.addValue(dg.uncompressedBuffer.getLong(), dg.uncompressedBuffer.getDouble()); } c.close(); dg.uncompressedBuffer.rewind(); }
public DataPointCompressTransformer(MetricType<T> metricType, long timeslice) { out = new ByteBufferBitOutput(); this.metricType = metricType; // Write the appropriate header, at first we're stuck to Gorilla only byte gorillaHeader = CompressorHeader.getHeader(CompressorHeader.Compressor.GORILLA, EnumSet.noneOf (CompressorHeader.GorillaSettings.class)); out.getByteBuffer().put(gorillaHeader); this.sliceTimestamp = timeslice; this.compressor = new Compressor(timeslice, out); this.tagsSerializer = new TagsSerializer(timeslice); }
public DataPointCompressTransformer(MetricType<T> metricType, long timeslice) { out = new ByteBufferBitOutput(); this.metricType = metricType; // Write the appropriate header, at first we're stuck to Gorilla only byte gorillaHeader = CompressorHeader.getHeader(CompressorHeader.Compressor.GORILLA, EnumSet.noneOf (CompressorHeader.GorillaSettings.class)); out.getByteBuffer().put(gorillaHeader); this.sliceTimestamp = timeslice; this.compressor = new Compressor(timeslice, out); this.tagsSerializer = new TagsSerializer(timeslice); }
LongArrayOutput arrayOutput = new LongArrayOutput(amountOfPoints); Compressor c = new Compressor(blockStart, output); GorillaCompressor gc = new GorillaCompressor(blockStart, arrayOutput);
LongArrayOutput arrayOutput = new LongArrayOutput(amountOfPoints); Compressor c = new Compressor(blockStart, output); GorillaCompressor gc = new GorillaCompressor(blockStart, arrayOutput);
out.getByteBuffer().put(gorillaHeader); Compressor compressor = new Compressor(timeslice, out); TagsSerializer tagsSerializer = new TagsSerializer(timeslice);
out.getByteBuffer().put(gorillaHeader); Compressor compressor = new Compressor(timeslice, out); TagsSerializer tagsSerializer = new TagsSerializer(timeslice);