org.mindswap.pellet.jena
Class SimpleUnion

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by com.hp.hpl.jena.graph.compose.CompositionBase
          extended by com.hp.hpl.jena.graph.compose.Polyadic
              extended by org.mindswap.pellet.jena.SimpleUnion
All Implemented Interfaces:
com.hp.hpl.jena.graph.Graph, com.hp.hpl.jena.graph.GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform

public class SimpleUnion
extends com.hp.hpl.jena.graph.compose.Polyadic

A simple union graph implementation whose find function may contain duplicate triples. The contains function is overridden so as not to call the find method.

Author:
Evren Sirin

Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
SimpleUnion(java.lang.Iterable<com.hp.hpl.jena.graph.Graph> graphs)
           
 
Method Summary
 boolean isEmpty()
          
 
Methods inherited from class com.hp.hpl.jena.graph.compose.Polyadic
addGraph, close, dependsOn, getBaseGraph, getBulkUpdateHandler, getCapabilities, getPrefixMapping, getRequiredBaseGraph, getSubGraphs, getTransactionHandler, removeGraph, setBaseGraph
 
Methods inherited from class com.hp.hpl.jena.graph.compose.CompositionBase
butNot, ifIn, ifIn, recording, reject, rejecting, rejecting
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, contains, contains, delete, find, find, forTestingOnly_graphBaseFind, getEventManager, getReifier, getStatisticsHandler, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, size, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleUnion

public SimpleUnion(java.lang.Iterable<com.hp.hpl.jena.graph.Graph> graphs)
Parameters:
graphs -
Method Detail

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface com.hp.hpl.jena.graph.Graph
Overrides:
isEmpty in class com.hp.hpl.jena.graph.impl.GraphBase


Copyright © 2004 Evren Sirin. All Rights Reserved.