java.lang.Comparable<org.apache.hadoop.io.BinaryComparable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<org.apache.hadoop.io.BinaryComparable>public class TypedBytesWritable
extends org.apache.hadoop.io.BytesWritable
| Constructor | Description |
|---|---|
TypedBytesWritable() |
Create a TypedBytesWritable.
|
TypedBytesWritable(byte[] bytes) |
Create a TypedBytesWritable with a given byte array as initial value.
|
| Modifier and Type | Method | Description |
|---|---|---|
Type |
getType() |
Get the type code embedded in the first byte.
|
java.lang.Object |
getValue() |
Get the typed bytes as a Java object.
|
void |
setValue(java.lang.Object obj) |
Set the typed bytes from a given Java object.
|
java.lang.String |
toString() |
Generate a suitable string representation.
|
copyBytes, equals, get, getBytes, getCapacity, getLength, getSize, hashCode, readFields, set, set, setCapacity, setSize, writepublic TypedBytesWritable()
public TypedBytesWritable(byte[] bytes)
public void setValue(java.lang.Object obj)
public java.lang.Object getValue()
public Type getType()
public java.lang.String toString()
toString in class org.apache.hadoop.io.BytesWritableCopyright © 2008–2025 Apache Software Foundation. All rights reserved.