public class Holder<T extends FaunusPathElement> extends org.apache.hadoop.io.GenericWritable implements org.apache.hadoop.io.WritableComparable<Holder<T>>
| Modifier and Type | Class and Description |
|---|---|
static class |
Holder.Comparator |
| Modifier and Type | Field and Description |
|---|---|
protected char |
tag |
| Constructor and Description |
|---|
Holder() |
Holder(char tag,
T element) |
Holder(DataInput in) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Holder<T> holder) |
boolean |
equals(Object object) |
T |
get() |
char |
getTag() |
protected Class<T>[] |
getTypes() |
int |
hashCode() |
void |
readFields(DataInput in) |
Holder<T> |
set(char tag,
T element) |
void |
write(DataOutput out) |
public Holder()
public Holder(DataInput in) throws IOException
IOExceptionpublic Holder(char tag,
T element)
protected Class<T>[] getTypes()
getTypes in class org.apache.hadoop.io.GenericWritablepublic char getTag()
public T get()
get in class org.apache.hadoop.io.GenericWritablepublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.io.GenericWritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.io.GenericWritableIOExceptionpublic int compareTo(Holder<T> holder)
compareTo in interface Comparable<Holder<T extends FaunusPathElement>>Copyright © 2012–2016. All rights reserved.