gr.uoa.di.madgik.searchlibrary.operatorlibrary.join
Enum RecordGenerationPolicy

java.lang.Object
  extended by java.lang.Enum<RecordGenerationPolicy>
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.join.RecordGenerationPolicy
All Implemented Interfaces:
Serializable, Comparable<RecordGenerationPolicy>

public enum RecordGenerationPolicy
extends Enum<RecordGenerationPolicy>


Enum Constant Summary
Concatenate
          The normal join operation policy.
KeepLeft
          Only the fields of the left input are kept.
KeepRight
          Similar to the RecordCreationPolicy#KeepLeft option.
 
Method Summary
static RecordGenerationPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RecordGenerationPolicy[] 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

Concatenate

public static final RecordGenerationPolicy Concatenate
The normal join operation policy. Each record produced by the operation will consist of the concatenation of the fields of the left input with those of the right input excluding the join key of the right input (that is, the join key of the left input is kept)


KeepLeft

public static final RecordGenerationPolicy KeepLeft
Only the fields of the left input are kept. Useful if the intention of the client is to simulate the intersection operation. Note that an additional duplicate elimination step is necessary in order to obtain the proper intersection of the two inputs


KeepRight

public static final RecordGenerationPolicy KeepRight
Similar to the RecordCreationPolicy#KeepLeft option. Included for completeness

Method Detail

values

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

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

valueOf

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


Copyright © 2013. All Rights Reserved.