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()
TypeOps
getTypeClass
in interface TypeOps<org.apache.hadoop.io.ByteWritable>
public org.apache.hadoop.io.ByteWritable create()
TypeOps
public org.apache.hadoop.io.ByteWritable createCopy(org.apache.hadoop.io.ByteWritable from)
TypeOps
createCopy
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)
TypeOps
public WByteArrayList createArrayList()
PrimitiveTypeOps
createArrayList
in interface PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>
public WByteArrayList createArrayList(int capacity)
PrimitiveTypeOps
createArrayList
in interface PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>
capacity
- Capacitypublic WByteArrayList readNewArrayList(DataInput in) throws IOException
PrimitiveTypeOps
readNewArrayList
in interface PrimitiveTypeOps<org.apache.hadoop.io.ByteWritable>
in
- InputIOException
public org.apache.hadoop.io.ByteWritable createZero()
NumericTypeOps
createZero
in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>
public org.apache.hadoop.io.ByteWritable createOne()
NumericTypeOps
createOne
in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>
public org.apache.hadoop.io.ByteWritable createMinNegativeValue()
NumericTypeOps
createMinNegativeValue
in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>
public org.apache.hadoop.io.ByteWritable createMaxPositiveValue()
NumericTypeOps
createMaxPositiveValue
in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>
public void plusInto(org.apache.hadoop.io.ByteWritable value, org.apache.hadoop.io.ByteWritable increment)
NumericTypeOps
plusInto
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)
NumericTypeOps
multiplyInto
in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>
value
- Value to modifymultiplier
- Multiplierpublic void negate(org.apache.hadoop.io.ByteWritable value)
NumericTypeOps
negate
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)
NumericTypeOps
compare
in interface NumericTypeOps<org.apache.hadoop.io.ByteWritable>
value1
- First valuevalue2
- Second valueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.