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