public enum ByteTypeOps extends Enum<ByteTypeOps> implements PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>, NumericTypeOps<org.apache.hadoop.io.ByteWritable>
| Enum Constant and Description |
|---|
INSTANCE
Singleton instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.apache.hadoop.io.ByteWritable value1,
org.apache.hadoop.io.ByteWritable value2)
Compare two values
|
org.apache.hadoop.io.ByteWritable |
create()
Create new instance of type T.
|
WByteArrayList |
createArrayList()
Create WArrayList of type T.
|
WByteArrayList |
createArrayList(int capacity)
Create WArrayList of type T, given capacity.
|
org.apache.hadoop.io.ByteWritable |
createCopy(org.apache.hadoop.io.ByteWritable from)
Create a copy of passed object
|
org.apache.hadoop.io.ByteWritable |
createMaxPositiveValue()
Maximal positive value representable via current type.
|
org.apache.hadoop.io.ByteWritable |
createMinNegativeValue()
Minimal negative value representable via current type.
|
org.apache.hadoop.io.ByteWritable |
createOne()
Value of one
|
org.apache.hadoop.io.ByteWritable |
createZero()
Value of zero
|
Class<org.apache.hadoop.io.ByteWritable> |
getTypeClass()
Class object for generic type T.
|
void |
multiplyInto(org.apache.hadoop.io.ByteWritable value,
org.apache.hadoop.io.ByteWritable multiplier)
value*=multiplier
|
void |
negate(org.apache.hadoop.io.ByteWritable value)
-value
|
void |
plusInto(org.apache.hadoop.io.ByteWritable value,
org.apache.hadoop.io.ByteWritable increment)
value+=adder
|
WByteArrayList |
readNewArrayList(DataInput in)
Create WArrayList of type T by reading it from given input.
|
void |
set(org.apache.hadoop.io.ByteWritable to,
org.apache.hadoop.io.ByteWritable from)
Copies the value from the second argument into the first.
|
static ByteTypeOps |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteTypeOps[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteTypeOps INSTANCE
public static ByteTypeOps[] values()
for (ByteTypeOps c : ByteTypeOps.values()) System.out.println(c);
public static ByteTypeOps valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<org.apache.hadoop.io.ByteWritable> getTypeClass()
TypeOpsgetTypeClass in interface TypeOps<org.apache.hadoop.io.ByteWritable>public org.apache.hadoop.io.ByteWritable create()
TypeOpspublic org.apache.hadoop.io.ByteWritable createCopy(org.apache.hadoop.io.ByteWritable from)
TypeOpscreateCopy in interface TypeOps<org.apache.hadoop.io.ByteWritable>from - Object to copypublic void set(org.apache.hadoop.io.ByteWritable to,
org.apache.hadoop.io.ByteWritable from)
TypeOpspublic WByteArrayList createArrayList()
PrimitiveTypeOpscreateArrayList in interface PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>public WByteArrayList createArrayList(int capacity)
PrimitiveTypeOpscreateArrayList in interface PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>capacity - Capacitypublic WByteArrayList readNewArrayList(DataInput in) throws IOException
PrimitiveTypeOpsreadNewArrayList in interface PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>in - InputIOExceptionpublic org.apache.hadoop.io.ByteWritable createZero()
NumericTypeOpscreateZero in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>public org.apache.hadoop.io.ByteWritable createOne()
NumericTypeOpscreateOne in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>public org.apache.hadoop.io.ByteWritable createMinNegativeValue()
NumericTypeOpscreateMinNegativeValue in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>public org.apache.hadoop.io.ByteWritable createMaxPositiveValue()
NumericTypeOpscreateMaxPositiveValue in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>public void plusInto(org.apache.hadoop.io.ByteWritable value,
org.apache.hadoop.io.ByteWritable increment)
NumericTypeOpsplusInto in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>value - Value to modifyincrement - Incrementpublic void multiplyInto(org.apache.hadoop.io.ByteWritable value,
org.apache.hadoop.io.ByteWritable multiplier)
NumericTypeOpsmultiplyInto in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>value - Value to modifymultiplier - Multiplierpublic void negate(org.apache.hadoop.io.ByteWritable value)
NumericTypeOpsnegate in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>value - Value to negatepublic int compare(org.apache.hadoop.io.ByteWritable value1,
org.apache.hadoop.io.ByteWritable value2)
NumericTypeOpscompare in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>value1 - First valuevalue2 - Second valueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.