org.apache.blur.thrift.generated
Enum RecordMutationType

java.lang.Object
  extended by java.lang.Enum<RecordMutationType>
      extended by org.apache.blur.thrift.generated.RecordMutationType
All Implemented Interfaces:
Serializable, Comparable<RecordMutationType>, TEnum

public enum RecordMutationType
extends Enum<RecordMutationType>
implements TEnum

Specifies the type of Record mutation that should occur during a mutation of a given Record.
DELETE_ENTIRE_RECORDIndicates the Record with the given recordId in the given Row is to be deleted. If the target record does not exist, then no changes are made.
REPLACE_ENTIRE_RECORDIndicates the Record with the given recordId in the given Row is to be deleted, and a new Record with the same id is to be added. If the specified record does not exist the new record is still added.
REPLACE_COLUMNSReplace the columns that are specified in the Record mutation. If the target record does not exist then this mutation will result in a BlurException.
APPEND_COLUMN_VALUESAppend the columns in the Record mutation to the Record that could already exist. If the target record does not exist then this mutation will result in a BlurException.


Enum Constant Summary
APPEND_COLUMN_VALUES
           
DELETE_ENTIRE_RECORD
           
REPLACE_COLUMNS
           
REPLACE_ENTIRE_RECORD
           
 
Method Summary
static RecordMutationType findByValue(int value)
          Find a the enum type by its integer value, as defined in the Thrift IDL.
 int getValue()
          Get the integer value of this enum value, as defined in the Thrift IDL.
static RecordMutationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RecordMutationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DELETE_ENTIRE_RECORD

public static final RecordMutationType DELETE_ENTIRE_RECORD

REPLACE_ENTIRE_RECORD

public static final RecordMutationType REPLACE_ENTIRE_RECORD

REPLACE_COLUMNS

public static final RecordMutationType REPLACE_COLUMNS

APPEND_COLUMN_VALUES

public static final RecordMutationType APPEND_COLUMN_VALUES
Method Detail

values

public static RecordMutationType[] 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 (RecordMutationType c : RecordMutationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RecordMutationType 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

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface TEnum

findByValue

public static RecordMutationType findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.