coral-beam-runtime/src/main/java/com/linkedin/beam/excution/BeamExecUtil.java
public static ByteBuffer toByteBuffer(Object object) {
    if (object == null) {
      return null;
    }

    if (object instanceof ByteBuffer) {
      return (ByteBuffer) object;
    }
    if (object instanceof GenericFixed) {
      return ByteBuffer.wrap(((GenericFixed) object).bytes());
    }
    throw new RuntimeException("Cannot convert " + object.getClass().getName() + " object into ByteBuffer");
  }
/**
   * Converts an object, which can be already ByteBuffer or GenericFixed,
   * into a ByteBuffer. Returns null if object is null.
   */
Converts an object, which can be already ByteBuffer or GenericFixed,
into a ByteBuffer. Returns null if object is null.
Converts an object which can be already ByteBuffer or GenericFixed into a ByteBuffer . Returns null if object is null .
public static ByteBuffer toByteBuffer(Object object) {
    if (object == null) {
      return null;
    }
    if (object instanceof ByteBuffer) {
      return (ByteBuffer) object;
    }
    if (object instanceof GenericFixed) {
      return ByteBuffer.wrap(((GenericFixed) object).bytes());
    }
    throw new RuntimeException("Cannot convert " + object.getClass().getName() + " object into ByteBuffer");
  }
public static ByteBuffer toByteBuffer ( Object object ) { if ( object == null ) { return null ; } if ( object instanceof ByteBuffer ) { return ( ByteBuffer ) object ; } if ( object instanceof GenericFixed ) { return ByteBuffer . wrap ( ( ( GenericFixed ) object ) . bytes ( ) ) ; } throw new RuntimeException ( "Cannot convert " + object . getClass ( ) . getName ( ) + " object into ByteBuffer" ) ; }
Converts an object, which can be already ByteBuffer or GenericFixed,
 into a ByteBuffer.
Converts an object which can be already ByteBuffer or GenericFixed into a ByteBuffer .