Package com.complexible.common.rdf.rio

# Interface RDFStatementHandler

All Superinterfaces:
  `AutoCloseable`

public interface RDFStatementHandler extends AutoCloseable
Handler for statements created by the `stream loader`. This class is meant to decouple streams and statement handlers and can be used to handle statements generated by different streams. Concurrent parsing of streams and management of threads are handled by the `stream processor`. To increase concurrency performance, statements are passed to the handler in bulk rather than one by one.

Since:
  2.0.1
Version:
  6.0
Author:
  Evren Sirin

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static interface`
  `RDFStatementHandler.Factory`
  Factory class to generate statement handlers.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `finish()`
  `void`
  `handleStatements(RDFStatementList theList)`
  Handles the statements produced by a stream.

- ## Method Details

  - ### handleStatements

    void handleStatements(RDFStatementList theList) throws RDFHandlerException
    Handles the statements produced by a stream. The provided list will never be empty. This function will never be called concurrently from multiple threads so its implementation does not need to be thread-safe.
    Throws:
      `RDFHandlerException`

  - ### finish

    void finish() throws RDFHandlerException
    Throws:
      `RDFHandlerException`

  - ### close

    void close()
    Specified by:
      `close` in interface `AutoCloseable`