MarkLogic Connector for Hadoop 1.1-3

com.marklogic.mapreduce
Enum PropertyOpType

java.lang.Object
  extended by java.lang.Enum<PropertyOpType>
      extended by 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 property mapreduce.marklogic.output.property.optype to one of these values to control how the output property value is handled by the server.

Use SET_PROPERTY to replace any existing properties with the new property. Use ADD_PROPERTY to add a property without removing existing properties.

For more information, see the following built-in functions in the XQuery & XSLT API Reference:


Enum Constant Summary
ADD_PROPERTY
           
SET_PROPERTY
           
 
Method Summary
abstract  String getFunctionName()
           
 String getQuery(org.apache.hadoop.conf.Configuration conf)
           
static PropertyOpType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

getFunctionName

public abstract String getFunctionName()

getQuery

public String getQuery(org.apache.hadoop.conf.Configuration conf)

MarkLogic Connector for Hadoop 1.1-3

Copyright © 2013 MarkLogic Corporation. All Rights Reserved.

Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com