Interface BinaryValued

    • Method Detail

      • asBinary

        byte[] asBinary()
        Gets the contained binary value.

        The array returned is a copy of the binary data contained in the object. To avoid this overhead, use asBinaryRef() instead.

        Returns:
        the contained value as a byte[]. If null valued, as indicated by TokenValued.isNull(), null is returned.
      • asBinaryRef

        byte[] asBinaryRef()
        Gets a reference to the contained binary value.

        While this call avoids the overhead seen with asBinary(), the caller must guarantee that the returned array will not be modified. Failure to comply may result in the dataflow exhibiting unexpected behavior, as other operators may (or may not) see the modified value.

        Returns:
        a reference to the byte[] holding the contained value. If null valued, as indicated by TokenValued.isNull(), null is returned.