-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Known Implementing Classes:
CSVEventDrivenImporter
,DIMACSEventDrivenImporter
,DOTEventDrivenImporter
,GmlEventDrivenImporter
,Graph6Sparse6EventDrivenImporter
,GraphMLEventDrivenImporter
,JSONEventDrivenImporter
,SimpleGEXFEventDrivenImporter
,SimpleGraphMLEdgeListImporter
,SimpleGraphMLEventDrivenImporter
public interface EventDrivenImporter<V,E>
Interface for an importer using consumers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addEdgeAttributeConsumer(BiConsumer<Pair<E,String>,Attribute> consumer)
Add an edge attribute consumer.void
addEdgeConsumer(Consumer<E> consumer)
Add an edge consumer.void
addEdgeCountConsumer(Consumer<Integer> consumer)
Add an edge count consumer.void
addEdgeWithAttributesConsumer(BiConsumer<E,Map<String,Attribute>> consumer)
Add an edge with attributes consumer.void
addGraphAttributeConsumer(BiConsumer<String,Attribute> consumer)
Add a graph attribute consumer.void
addImportEventConsumer(Consumer<ImportEvent> consumer)
Add an ImportEvent consumer.void
addVertexAttributeConsumer(BiConsumer<Pair<V,String>,Attribute> consumer)
Add a vertex attribute consumer.void
addVertexConsumer(Consumer<V> consumer)
Add a vertex consumer.void
addVertexCountConsumer(Consumer<Integer> consumer)
Add a vertex count consumer.void
addVertexWithAttributesConsumer(BiConsumer<V,Map<String,Attribute>> consumer)
Add a vertex with attributes consumer.default void
importInput(File file)
Import a graphdefault void
importInput(InputStream in)
Import a graphvoid
importInput(Reader input)
Import a graphvoid
removeEdgeAttributeConsumer(BiConsumer<Pair<E,String>,Attribute> consumer)
Remove an edge attribute consumer.void
removeEdgeConsumer(Consumer<E> consumer)
Remove an edge consumer.void
removeEdgeCountConsumer(Consumer<Integer> consumer)
Remove an edge count consumer.void
removeEdgeWithAttributesConsumer(BiConsumer<E,Map<String,Attribute>> consumer)
Remove an edge with attributes consumervoid
removeGraphAttributeConsumer(BiConsumer<String,Attribute> consumer)
Remove a graph attribute consumer.void
removeImportEventConsumer(Consumer<ImportEvent> consumer)
Remove an ImportEvent consumer.void
removeVertexAttributeConsumer(BiConsumer<Pair<V,String>,Attribute> consumer)
Remove a vertex attribute consumer.void
removeVertexConsumer(Consumer<V> consumer)
Remove a vertex consumer.void
removeVertexCountConsumer(Consumer<Integer> consumer)
Remove a vertex count consumer.void
removeVertexWithAttributesConsumer(BiConsumer<V,Map<String,Attribute>> consumer)
Remove a vertex with attributes consumer
-
-
-
Method Detail
-
addImportEventConsumer
void addImportEventConsumer(Consumer<ImportEvent> consumer)
Add an ImportEvent consumer.- Parameters:
consumer
- the consumer
-
removeImportEventConsumer
void removeImportEventConsumer(Consumer<ImportEvent> consumer)
Remove an ImportEvent consumer.- Parameters:
consumer
- the consumer
-
addVertexCountConsumer
void addVertexCountConsumer(Consumer<Integer> consumer)
Add a vertex count consumer.- Parameters:
consumer
- the consumer
-
removeVertexCountConsumer
void removeVertexCountConsumer(Consumer<Integer> consumer)
Remove a vertex count consumer.- Parameters:
consumer
- the consumer
-
addEdgeCountConsumer
void addEdgeCountConsumer(Consumer<Integer> consumer)
Add an edge count consumer.- Parameters:
consumer
- the consumer
-
removeEdgeCountConsumer
void removeEdgeCountConsumer(Consumer<Integer> consumer)
Remove an edge count consumer.- Parameters:
consumer
- the consumer
-
addVertexConsumer
void addVertexConsumer(Consumer<V> consumer)
Add a vertex consumer.- Parameters:
consumer
- the consumer
-
removeVertexConsumer
void removeVertexConsumer(Consumer<V> consumer)
Remove a vertex consumer.- Parameters:
consumer
- the consumer
-
addVertexWithAttributesConsumer
void addVertexWithAttributesConsumer(BiConsumer<V,Map<String,Attribute>> consumer)
Add a vertex with attributes consumer.- Parameters:
consumer
- the consumer
-
removeVertexWithAttributesConsumer
void removeVertexWithAttributesConsumer(BiConsumer<V,Map<String,Attribute>> consumer)
Remove a vertex with attributes consumer- Parameters:
consumer
- the consumer
-
addEdgeConsumer
void addEdgeConsumer(Consumer<E> consumer)
Add an edge consumer.- Parameters:
consumer
- the consumer
-
removeEdgeConsumer
void removeEdgeConsumer(Consumer<E> consumer)
Remove an edge consumer.- Parameters:
consumer
- the consumer
-
addEdgeWithAttributesConsumer
void addEdgeWithAttributesConsumer(BiConsumer<E,Map<String,Attribute>> consumer)
Add an edge with attributes consumer.- Parameters:
consumer
- the consumer
-
removeEdgeWithAttributesConsumer
void removeEdgeWithAttributesConsumer(BiConsumer<E,Map<String,Attribute>> consumer)
Remove an edge with attributes consumer- Parameters:
consumer
- the consumer
-
addGraphAttributeConsumer
void addGraphAttributeConsumer(BiConsumer<String,Attribute> consumer)
Add a graph attribute consumer.- Parameters:
consumer
- the consumer
-
removeGraphAttributeConsumer
void removeGraphAttributeConsumer(BiConsumer<String,Attribute> consumer)
Remove a graph attribute consumer.- Parameters:
consumer
- the consumer
-
addVertexAttributeConsumer
void addVertexAttributeConsumer(BiConsumer<Pair<V,String>,Attribute> consumer)
Add a vertex attribute consumer.- Parameters:
consumer
- the consumer
-
removeVertexAttributeConsumer
void removeVertexAttributeConsumer(BiConsumer<Pair<V,String>,Attribute> consumer)
Remove a vertex attribute consumer.- Parameters:
consumer
- the consumer
-
addEdgeAttributeConsumer
void addEdgeAttributeConsumer(BiConsumer<Pair<E,String>,Attribute> consumer)
Add an edge attribute consumer.- Parameters:
consumer
- the consumer
-
removeEdgeAttributeConsumer
void removeEdgeAttributeConsumer(BiConsumer<Pair<E,String>,Attribute> consumer)
Remove an edge attribute consumer.- Parameters:
consumer
- the consumer
-
importInput
void importInput(Reader input)
Import a graph- Parameters:
input
- the input reader- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
importInput
default void importInput(InputStream in)
Import a graph- Parameters:
in
- the input stream- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
importInput
default void importInput(File file)
Import a graph- Parameters:
file
- the file to read from- Throws:
ImportException
- in case any error occurs, such as I/O or parse error
-
-