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