Package com.marklogic.mapreduce
Enum NodeOpType
- java.lang.Object
-
- java.lang.Enum<NodeOpType>
-
- com.marklogic.mapreduce.NodeOpType
-
- All Implemented Interfaces:
Serializable,Comparable<NodeOpType>
public enum NodeOpType extends Enum<NodeOpType>
Type of supported node operations.When using
NodeOutputFormat, set the configuration propertymapreduce.marklogic.output.node.optypeto one of these values to control how the output node value is stored relative to theNodePathkey.For example if the
node.optypeis set to "INSERT_BEFORE", then the new node is inserted as an immediately preceding sibling of the node addressed by the node path in the key.For more information, see the following built-in functions in the XQuery & XSLT API Reference:
- xdmp:node-insert-before
- xdmp:node-insert-after
- xdmp:node-insert-child
- xdmp:node-insert-replace
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSERT_AFTERINSERT_BEFOREINSERT_CHILDREPLACE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetFunctionName()StringgetQuery(String namespace)static NodeOpTypevalueOf(String name)Returns the enum constant of this type with the specified name.static NodeOpType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT_BEFORE
public static final NodeOpType INSERT_BEFORE
-
INSERT_AFTER
public static final NodeOpType INSERT_AFTER
-
INSERT_CHILD
public static final NodeOpType INSERT_CHILD
-
REPLACE
public static final NodeOpType REPLACE
-
-
Method Detail
-
values
public static NodeOpType[] 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 (NodeOpType c : NodeOpType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeOpType 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()
-
-