Class BytesWritableHelper


  • public class BytesWritableHelper
    extends Object
    Provides a helper class to simplify frequent operations on BytesWritable.
    • Constructor Detail

      • BytesWritableHelper

        public BytesWritableHelper()
    • Method Detail

      • wrapAsMemory

        public static org.apache.datasketches.memory.Memory wrapAsMemory​(org.apache.hadoop.io.BytesWritable bw)
        Wraps BytesWritable with a read-only Memory interface, without copying the underlying data.
        Parameters:
        bw - Input BytesWritable object
        Returns:
        Read-only Memory wrapping the input BytesWritable