edu.upc.dama.dex.io
Class Loader.Mode

java.lang.Object
  extended by java.lang.Enum
      extended by edu.upc.dama.dex.io.Loader.Mode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Enclosing class:
Loader

public static final class Loader.Mode
extends java.lang.Enum

Load can work in different ways.

See Also:
Serialized Form

Field Summary
static Loader.Mode N_PHASES
          Performs the load in N phases.
static Loader.Mode ONE_PHASE
          Performs the load in a phases.
static Loader.Mode TWO_PHASES
          Performs the load in two phases.
 
Method Summary
static Loader.Mode valueOf(java.lang.String name)
           
static Loader.Mode[] values()
           
 
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
 

Field Detail

ONE_PHASE

public static final Loader.Mode ONE_PHASE
Performs the load in a phases.

Load all objects an attributes at the same time.


TWO_PHASES

public static final Loader.Mode TWO_PHASES
Performs the load in two phases.

Firstly load all objects (and create them if necessary) and secondly loads all the attributes.

Working on this mode it is necessary to build a temporary file.


N_PHASES

public static final Loader.Mode N_PHASES
Performs the load in N phases.

Firstly load all objects (and create them if necessary) and secondly loads all the attributes. But in this case, attributes are loaded one by one. This way, if there are three attributes, then 4 traverses to the RowReader are necessary.

Working on this mode it is necessary to build a temporary file.

Method Detail

values

public static Loader.Mode[] values()

valueOf

public static Loader.Mode valueOf(java.lang.String name)