org.aksw.commons.graph
Class BaseIndexedGraph

java.lang.Object
  extended by org.aksw.commons.graph.BaseIndexedGraph
All Implemented Interfaces:
IGraph
Direct Known Subclasses:
DeltaGraph, MemoryGraph

public abstract class BaseIndexedGraph
extends Object
implements IGraph

A graph with support for indexes. FIXME The management of indexes should be factored out into something like IIndexManager, or IIndexProvider.


Field Summary
protected  ICacheProvider cacheProvider
           
protected  List<IGraphListener> listeners
           
 
Constructor Summary
protected BaseIndexedGraph()
           
 
Method Summary
 void add(Collection<com.hp.hpl.jena.graph.Triple> triples)
          Adds triples to the graph
 Set<com.hp.hpl.jena.graph.Triple> bulkFind(Set<List<Object>> keys, int[] indexColumns)
           
 ICacheProvider getCacheProvider()
           
 Collection<IGraphListener> getGraphListeners()
           
 void remove(Collection<com.hp.hpl.jena.graph.Triple> triples)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.aksw.commons.graph.IGraph
clear, uncachedBulkFind
 

Field Detail

listeners

protected List<IGraphListener> listeners

cacheProvider

protected ICacheProvider cacheProvider
Constructor Detail

BaseIndexedGraph

protected BaseIndexedGraph()
Method Detail

getGraphListeners

public Collection<IGraphListener> getGraphListeners()
Specified by:
getGraphListeners in interface IGraph

getCacheProvider

public ICacheProvider getCacheProvider()
Specified by:
getCacheProvider in interface IGraph

bulkFind

public Set<com.hp.hpl.jena.graph.Triple> bulkFind(Set<List<Object>> keys,
                                                  int[] indexColumns)
Specified by:
bulkFind in interface IGraph

add

public void add(Collection<com.hp.hpl.jena.graph.Triple> triples)
Description copied from interface: IGraph
Adds triples to the graph

Specified by:
add in interface IGraph

remove

public void remove(Collection<com.hp.hpl.jena.graph.Triple> triples)
Specified by:
remove in interface IGraph

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.