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