org.trippi
Class TripleUpdate

java.lang.Object
  extended by org.trippi.TripleUpdate

public class TripleUpdate
extends java.lang.Object

A single Triple and a type, indicating whether it is to be added or deleted from the triplestore. This is the internal structure used for the TriplestoreWriter buffer. Applications registering a FlushErrorHandler may will recieve a list of these when a flush error occurs.

Author:
cwilper@cs.cornell.edu

Field Summary
static int ADD
          Type value indicating that the triple is to be added.
static int DELETE
          Type value indicating that the triple is to be deleted.
static int NONE
           
 org.jrdf.graph.Triple triple
          The Triple to be added or deleted.
 int type
          Which type of update (ADD or DELETE) this is.
 
Method Summary
static java.util.List get(int type, java.util.List triples)
          Get a list of TripleUpdates of a certain type given a list of Triples.
static TripleUpdate get(int type, org.jrdf.graph.Triple triple)
          Get a TripleUpdate of a certain type given a Triple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

DELETE

public static final int DELETE
Type value indicating that the triple is to be deleted.

See Also:
Constant Field Values

ADD

public static final int ADD
Type value indicating that the triple is to be added.

See Also:
Constant Field Values

type

public int type
Which type of update (ADD or DELETE) this is.


triple

public org.jrdf.graph.Triple triple
The Triple to be added or deleted.

Method Detail

get

public static TripleUpdate get(int type,
                               org.jrdf.graph.Triple triple)
Get a TripleUpdate of a certain type given a Triple.


get

public static java.util.List get(int type,
                                 java.util.List triples)
Get a list of TripleUpdates of a certain type given a list of Triples.