Package com.marklogic.mapreduce
Enum PropertyOpType
- java.lang.Object
-
- java.lang.Enum<PropertyOpType>
-
- com.marklogic.mapreduce.PropertyOpType
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyOpType>
public enum PropertyOpType extends Enum<PropertyOpType>
Type of supported property operations.When using
PropertyOutputFormat, set the configuration propertymapreduce.marklogic.output.property.optypeto one of these values to control how the output property value is handled by the server.Use
SET_PROPERTYto replace any existing properties with the new property. UseADD_PROPERTYto add a property without removing existing properties.For more information, see the following built-in functions in the XQuery & XSLT API Reference:
- xdmp:document-set-property
- xdmp:document-add-properties
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_PROPERTYSET_PROPERTY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetFunctionName()StringgetQuery(org.apache.hadoop.conf.Configuration conf)static PropertyOpTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyOpType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SET_PROPERTY
public static final PropertyOpType SET_PROPERTY
-
ADD_PROPERTY
public static final PropertyOpType ADD_PROPERTY
-
-
Method Detail
-
values
public static PropertyOpType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyOpType c : PropertyOpType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyOpType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFunctionName
public abstract String getFunctionName()
-
getQuery
public String getQuery(org.apache.hadoop.conf.Configuration conf)
-
-