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