Package io.druid.segment.data

Examples of io.druid.segment.data.CompressedFloatsIndexedSupplier$CompressedIndexedFloats


        for (Rowboat theRow : theRows) {
          Object obj = theRow.getMetrics()[metricIndex];
          arr[rowNum++] = (obj == null) ? 0 : ((Number) obj).floatValue();
        }

        CompressedFloatsIndexedSupplier compressedFloats = CompressedFloatsIndexedSupplier.fromFloatBuffer(
            FloatBuffer.wrap(arr),
            IndexIO.BYTE_ORDER,
            CompressedObjectStrategy.DEFAULT_COMPRESSION_STRATEGY
        );
View Full Code Here


  }

  @Override
  public ColumnPartSerde read(ByteBuffer buffer, ColumnBuilder builder, ColumnConfig columnConfig)
  {
    final CompressedFloatsIndexedSupplier column = CompressedFloatsIndexedSupplier.fromByteBuffer(buffer, byteOrder);

    builder.setType(ValueType.FLOAT)
           .setHasMultipleValues(false)
           .setGenericColumn(new FloatGenericColumnSupplier(column, byteOrder));
View Full Code Here

TOP

Related Classes of io.druid.segment.data.CompressedFloatsIndexedSupplier$CompressedIndexedFloats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.