Writable@Public @Stable public class ArrayPrimitiveWritable extends java.lang.Object implements Writable
| Constructor | Description |
|---|---|
ArrayPrimitiveWritable() |
Construct an empty instance, for use during Writable read
|
ArrayPrimitiveWritable(java.lang.Class<?> componentType) |
Construct an instance of known type but no value yet
for use with type-specific wrapper classes.
|
ArrayPrimitiveWritable(java.lang.Object value) |
Wrap an existing array of primitives
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
get() |
Get the original array.
|
java.lang.Class<?> |
getComponentType() |
|
java.lang.Class<?> |
getDeclaredComponentType() |
|
boolean |
isDeclaredComponentType(java.lang.Class<?> componentType) |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
void |
set(java.lang.Object value) |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
public ArrayPrimitiveWritable()
public ArrayPrimitiveWritable(java.lang.Class<?> componentType)
componentType - componentType.public ArrayPrimitiveWritable(java.lang.Object value)
value - - array of primitivespublic java.lang.Object get()
public java.lang.Class<?> getComponentType()
public java.lang.Class<?> getDeclaredComponentType()
public boolean isDeclaredComponentType(java.lang.Class<?> componentType)
public void set(java.lang.Object value)
public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.