public BigDecimal serialize(byte[] value) {
    try {
      return new BigDecimal(ByteBuffer.wrap(value).asDoubleBuffer().get());
    } catch (Exception e) {
      throw new RuntimeException(e.toString() + " occurred trying to build double value. "
          + "Make sure the value type for the byte[] is double.");
    }
  }
@return BigDecimal holding double byte [] value
accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/predicate/compare/DoubleCompare.java