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()
TypeOpsgetTypeClass in interface TypeOps<org.apache.hadoop.io.LongWritable>public org.apache.hadoop.io.LongWritable create()
TypeOpspublic org.apache.hadoop.io.LongWritable createCopy(org.apache.hadoop.io.LongWritable from)
TypeOpscreateCopy 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)
TypeOpspublic WLongArrayList createArrayList()
PrimitiveTypeOpscreateArrayList in interface PrimitiveTypeOps<org.apache.hadoop.io.LongWritable>public WLongArrayList createArrayList(int capacity)
PrimitiveTypeOpscreateArrayList in interface PrimitiveTypeOps<org.apache.hadoop.io.LongWritable>capacity - Capacitypublic WLongArrayList readNewArrayList(DataInput in) throws IOException
PrimitiveTypeOpsreadNewArrayList in interface PrimitiveTypeOps<org.apache.hadoop.io.LongWritable>in - InputIOExceptionpublic BasicSet.BasicLongOpenHashSet createOpenHashSet()
PrimitiveIdTypeOpscreateOpenHashSet in interface PrimitiveIdTypeOps<org.apache.hadoop.io.LongWritable>public BasicSet.BasicLongOpenHashSet createOpenHashSet(long capacity)
PrimitiveIdTypeOpscreateOpenHashSet in interface PrimitiveIdTypeOps<org.apache.hadoop.io.LongWritable>capacity - Capacitypublic <V> Basic2ObjectMap.BasicLong2ObjectOpenHashMap<V> create2ObjectOpenHashMap(WritableWriter<V> valueWriter)
PrimitiveIdTypeOpscreate2ObjectOpenHashMap 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)
PrimitiveIdTypeOpscreate2ObjectOpenHashMap 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()
NumericTypeOpscreateZero in interface NumericTypeOps<org.apache.hadoop.io.LongWritable>public org.apache.hadoop.io.LongWritable createOne()
NumericTypeOpscreateOne in interface NumericTypeOps<org.apache.hadoop.io.LongWritable>public org.apache.hadoop.io.LongWritable createMinNegativeValue()
NumericTypeOpscreateMinNegativeValue in interface NumericTypeOps<org.apache.hadoop.io.LongWritable>public org.apache.hadoop.io.LongWritable createMaxPositiveValue()
NumericTypeOpscreateMaxPositiveValue in interface NumericTypeOps<org.apache.hadoop.io.LongWritable>public void plusInto(org.apache.hadoop.io.LongWritable value,
org.apache.hadoop.io.LongWritable increment)
NumericTypeOpsplusInto 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)
NumericTypeOpsmultiplyInto in interface NumericTypeOps<org.apache.hadoop.io.LongWritable>value - Value to modifymultiplier - Multiplierpublic void negate(org.apache.hadoop.io.LongWritable value)
NumericTypeOpsnegate 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)
NumericTypeOpscompare in interface NumericTypeOps<org.apache.hadoop.io.LongWritable>value1 - First valuevalue2 - Second valueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.