com.bigdata.rdf.store
Enum DataLoader.ClosureEnum

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

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

A type-safe enumeration of options effecting whether and when entailments are computed as documents are loaded into the database using the DataLoader.

Version:
$Id: DataLoader.java 6045 2012-02-27 17:33:44Z thompsonbry $
Author:
Bryan Thompson

Enum Constant Summary
Batch
          Set-of-documents-at-a-time closure.
Incremental
          Document-at-a-time closure.
None
          Closure is not maintained as documents are loaded.
 
Method Summary
static DataLoader.ClosureEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataLoader.ClosureEnum[] 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.ClosureEnum Incremental
Document-at-a-time closure.

Each documents is loaded separately into a temporary store, the temporary store is closed against the database, and the results of the closure are transferred to the database.


Batch

public static final DataLoader.ClosureEnum Batch
Set-of-documents-at-a-time closure.

A set of documents are loaded into a temporary store, the temporary store is closed against the database, and the results of the closure are transferred to the database. maintaining closure.


None

public static final DataLoader.ClosureEnum None
Closure is not maintained as documents are loaded.

You can always use the InferenceEngine to (re-)close a database. If explicit statements MAY have been deleted, then you SHOULD first delete all inferences before re-computing the closure.

Method Detail

values

public static DataLoader.ClosureEnum[] 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.ClosureEnum c : DataLoader.ClosureEnum.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.ClosureEnum 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.