org.gcube.data.tr.neo
Class TransactingGenerator<FROM,TO>
java.lang.Object
org.gcube.data.tr.neo.TransactingGenerator<FROM,TO>
- All Implemented Interfaces:
- org.gcube.data.streams.delegates.StreamListener, org.gcube.data.streams.generators.Generator<FROM,TO>
public class TransactingGenerator<FROM,TO>
- extends Object
- implements org.gcube.data.streams.generators.Generator<FROM,TO>, org.gcube.data.streams.delegates.StreamListener
| Fields inherited from interface org.gcube.data.streams.generators.Generator |
iteration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactingGenerator
public TransactingGenerator(org.neo4j.graphdb.GraphDatabaseService db,
org.gcube.data.streams.generators.Generator<FROM,TO> filter,
String name)
onStart
public void onStart()
- Specified by:
onStart in interface org.gcube.data.streams.delegates.StreamListener
yield
public TO yield(FROM element)
- Specified by:
yield in interface org.gcube.data.streams.generators.Generator<FROM,TO>
onEnd
public void onEnd()
- Specified by:
onEnd in interface org.gcube.data.streams.delegates.StreamListener
onClose
public void onClose()
- Specified by:
onClose in interface org.gcube.data.streams.delegates.StreamListener
Copyright © 2013. All Rights Reserved.