Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.mem
Class StoreTripleIterator  view StoreTripleIterator download StoreTripleIterator.java

java.lang.Object
  extended bycom.hp.hpl.jena.util.iterator.NiceIterator
      extended bycom.hp.hpl.jena.util.iterator.WrappedIterator
          extended bycom.hp.hpl.jena.mem.TrackingTripleIterator
              extended bycom.hp.hpl.jena.mem.StoreTripleIterator
All Implemented Interfaces:
com.hp.hpl.jena.util.iterator.ClosableIterator, com.hp.hpl.jena.util.iterator.ExtendedIterator, java.util.Iterator

public class StoreTripleIterator
extends TrackingTripleIterator

An iterator wrapper for NodeToTriplesMap iterators which ensures that a .remove on the base iterator is copied to the other two maps of this GraphMem. The current triple (the most recent result of .next) is tracked by the parent TrackingTripleIterator so that it can be removed from the other two maps, which are passed in when this StoreTripleIterator is created.


Field Summary
protected  NodeToTriplesMap A
           
protected  NodeToTriplesMap B
           
protected  com.hp.hpl.jena.graph.Graph toNotify
           
 
Fields inherited from class com.hp.hpl.jena.mem.TrackingTripleIterator
current
 
Fields inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator
removeDenied
 
Fields inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
 
Constructor Summary
StoreTripleIterator(com.hp.hpl.jena.graph.Graph toNotify, java.util.Iterator it, NodeToTriplesMap A, NodeToTriplesMap B)
           
 
Method Summary
 void remove()
          if .remove() is allowed, delegate to the abse iterator's .remove; otherwise, throw an UnsupportedOperationException.
 
Methods inherited from class com.hp.hpl.jena.mem.TrackingTripleIterator
next
 
Methods inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator
close, close, create, createNoRemove, hasNext
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, andThen, emptyIterator, ensureHasNext, filterDrop, filterKeep, mapWith, noElements, removeNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

A

protected NodeToTriplesMap A

B

protected NodeToTriplesMap B

toNotify

protected com.hp.hpl.jena.graph.Graph toNotify
Constructor Detail

StoreTripleIterator

public StoreTripleIterator(com.hp.hpl.jena.graph.Graph toNotify,
                           java.util.Iterator it,
                           NodeToTriplesMap A,
                           NodeToTriplesMap B)
Method Detail

remove

public void remove()
Description copied from class: com.hp.hpl.jena.util.iterator.WrappedIterator
if .remove() is allowed, delegate to the abse iterator's .remove; otherwise, throw an UnsupportedOperationException.