@Override
    public long uniformValAt(int index, byte type) {
        switch (version) {
            case Version.VERSION_0_ID:
                return NumOp.getVal(numType, dataAddr, index, minVal);
            default:
                switch (type) {
                    case ColumnType.INT:
                        return NumOp.getInt(dataAddr, index);
                    case ColumnType.LONG:
                        return NumOp.getLong(dataAddr, index);
                    case ColumnType.FLOAT:
                        return Double.doubleToRawLongBits(NumOp.getFloat(dataAddr, index));
                    case ColumnType.DOUBLE:
                        return Double.doubleToRawLongBits(NumOp.getDouble(dataAddr, index));
                    default:
                        throw new IllegalStateException("unsupported type " + type);
                }
        }
    }
Note that this method could update the content of dpn.
Make sure to call this method before you actually save the dpn instance to storage.
indexr-segment/src/main/java/io/indexr/segment/pack/DataPack.java