Class BytesWritableHelper
- java.lang.Object
-
- org.apache.datasketches.hive.common.BytesWritableHelper
-
public class BytesWritableHelper extends Object
Provides a helper class to simplify frequent operations on BytesWritable.
-
-
Constructor Summary
Constructors Constructor Description BytesWritableHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.datasketches.memory.MemorywrapAsMemory(org.apache.hadoop.io.BytesWritable bw)Wraps BytesWritable with a read-only Memory interface, without copying the underlying data.
-
-
-
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
-
-