com.bigdata.rdf.model
Enum StatementEnum

java.lang.Object
  extended by java.lang.Enum<StatementEnum>
      extended by com.bigdata.rdf.model.StatementEnum
All Implemented Interfaces:
Serializable, Comparable<StatementEnum>

public enum StatementEnum
extends Enum<StatementEnum>

The basic statement types are: axioms, explicit, inferred.

Version:
$Id: StatementEnum.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Enum Constant Summary
Axiom
          Something that is directly entailed by the appropriate model theory.
Backchained
          For debugging.
Explicit
          A statement that was inserted into the database explicitly by the application.
Inferred
          A statement that was inferred from the explicit statements by the appropriate model theory.
 
Field Summary
static int MASK_OVERRIDE
          A bit mask used to isolate the bit that indicates that the existing statement type should be overridden thereby allowing the downgrade of a statement from explicit to inferred.
 
Method Summary
 byte code()
           
static StatementEnum decode(byte b)
          Decode a byte into a StatementEnum.
static StatementEnum deserialize(byte[] val)
           
static boolean isOverride(byte b)
          Return true iff the override bit is set.
static StatementEnum max(StatementEnum a, StatementEnum b)
          Max returns the value that is first in the total order Explicit Axiom Inferred
 byte[] serialize()
           
static StatementEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StatementEnum[] 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

Explicit

public static final StatementEnum Explicit
A statement that was inserted into the database explicitly by the application.


Axiom

public static final StatementEnum Axiom
Something that is directly entailed by the appropriate model theory.


Inferred

public static final StatementEnum Inferred
A statement that was inferred from the explicit statements by the appropriate model theory.


Backchained

public static final StatementEnum Backchained
For debugging.

Field Detail

MASK_OVERRIDE

public static final int MASK_OVERRIDE
A bit mask used to isolate the bit that indicates that the existing statement type should be overridden thereby allowing the downgrade of a statement from explicit to inferred.

See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

code

public byte code()

max

public static StatementEnum max(StatementEnum a,
                                StatementEnum b)
Max returns the value that is first in the total order

Parameters:
a -
b -
Returns:

decode

public static StatementEnum decode(byte b)
Decode a byte into a StatementEnum.

Note: The override bit is masked off during this operation.

Parameters:
b - The byte.
Returns:
The StatementEnum value.

deserialize

public static StatementEnum deserialize(byte[] val)

serialize

public byte[] serialize()

isOverride

public static boolean isOverride(byte b)
Return true iff the override bit is set.

Parameters:
b - The byte.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.