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