public class ShortWritable extends Object implements org.apache.hadoop.io.WritableComparable
Modifier and Type | Class and Description |
---|---|
static class |
ShortWritable.Comparator
A Comparator optimized for BytesWritable.
|
Constructor and Description |
---|
ShortWritable() |
ShortWritable(short s) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
short |
get() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
set(short value) |
String |
toString() |
void |
write(DataOutput out) |
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void set(short value)
public short get()
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2022 The Apache Software Foundation. All rights reserved.