public enum BooleanTypeOps extends Enum<BooleanTypeOps> implements PrimitiveTypeOps<org.apache.hadoop.io.BooleanWritable>
Enum Constant and Description |
---|
INSTANCE
Singleton instance
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.BooleanWritable |
create()
Create new instance of type T.
|
WBooleanArrayList |
createArrayList()
Create WArrayList of type T.
|
WBooleanArrayList |
createArrayList(int capacity)
Create WArrayList of type T, given capacity.
|
org.apache.hadoop.io.BooleanWritable |
createCopy(org.apache.hadoop.io.BooleanWritable from)
Create a copy of passed object
|
Class<org.apache.hadoop.io.BooleanWritable> |
getTypeClass()
Class object for generic type T.
|
WBooleanArrayList |
readNewArrayList(DataInput in)
Create WArrayList of type T by reading it from given input.
|
void |
set(org.apache.hadoop.io.BooleanWritable to,
org.apache.hadoop.io.BooleanWritable from)
Copies the value from the second argument into the first.
|
static BooleanTypeOps |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BooleanTypeOps[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanTypeOps INSTANCE
public static BooleanTypeOps[] values()
for (BooleanTypeOps c : BooleanTypeOps.values()) System.out.println(c);
public static BooleanTypeOps 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.BooleanWritable> getTypeClass()
TypeOps
getTypeClass
in interface TypeOps<org.apache.hadoop.io.BooleanWritable>
public org.apache.hadoop.io.BooleanWritable create()
TypeOps
public org.apache.hadoop.io.BooleanWritable createCopy(org.apache.hadoop.io.BooleanWritable from)
TypeOps
createCopy
in interface TypeOps<org.apache.hadoop.io.BooleanWritable>
from
- Object to copypublic void set(org.apache.hadoop.io.BooleanWritable to, org.apache.hadoop.io.BooleanWritable from)
TypeOps
public WBooleanArrayList createArrayList()
PrimitiveTypeOps
createArrayList
in interface PrimitiveTypeOps<org.apache.hadoop.io.BooleanWritable>
public WBooleanArrayList createArrayList(int capacity)
PrimitiveTypeOps
createArrayList
in interface PrimitiveTypeOps<org.apache.hadoop.io.BooleanWritable>
capacity
- Capacitypublic WBooleanArrayList readNewArrayList(DataInput in) throws IOException
PrimitiveTypeOps
readNewArrayList
in interface PrimitiveTypeOps<org.apache.hadoop.io.BooleanWritable>
in
- InputIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.