com.bigdata.rdf.store
Enum DataLoader.CommitEnum

java.lang.Object
  extended by java.lang.Enum<DataLoader.CommitEnum>
      extended by com.bigdata.rdf.store.DataLoader.CommitEnum
All Implemented Interfaces:
Serializable, Comparable<DataLoader.CommitEnum>
Enclosing class:
DataLoader

public static enum DataLoader.CommitEnum
extends Enum<DataLoader.CommitEnum>

A type-safe enumeration of options effecting whether and when the database will be committed.

Version:
$Id: DataLoader.java 6045 2012-02-27 17:33:44Z thompsonbry $
Author:
Bryan Thompson
See Also:
ITripleStore.commit()

Enum Constant Summary
Batch
          Commit after each set of documents has been loaded into the database.
Incremental
          Commit as each document is loaded into the database.
None
          The DataLoader will NOT commit the database - this is left to the caller.
 
Method Summary
static DataLoader.CommitEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataLoader.CommitEnum[] 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

Incremental

public static final DataLoader.CommitEnum Incremental
Commit as each document is loaded into the database.


Batch

public static final DataLoader.CommitEnum Batch
Commit after each set of documents has been loaded into the database.


None

public static final DataLoader.CommitEnum None
The DataLoader will NOT commit the database - this is left to the caller.

Method Detail

values

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

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

valueOf

public static DataLoader.CommitEnum 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 © 2006-2011 SYSTAP, LLC. All Rights Reserved.