T
- element typepublic class ArrayWritable<T extends org.apache.hadoop.io.Writable> extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
ArrayWritable()
Constructor
|
ArrayWritable(Class<T> valueClass,
T[] values)
Constructor
|
Modifier and Type | Method and Description |
---|---|
T[] |
get()
Ger array
|
Class<T> |
getValueClass()
Get element type class
|
void |
readFields(DataInput in) |
void |
set(T[] values)
Set array
|
void |
write(DataOutput out) |
public void set(T[] values)
values
- arraypublic T[] get()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.