Class BufferedGroupingRDFHandler

java.lang.Object
org.eclipse.rdf4j.rio.helpers.RDFHandlerWrapper
org.eclipse.rdf4j.rio.helpers.BufferedGroupingRDFHandler
All Implemented Interfaces:
RDFHandler

public class BufferedGroupingRDFHandler extends RDFHandlerWrapper
An RDFHandlerWrapper that buffers statements internally and passes them to underlying handlers grouped by context, then subject, then predicate.
Author:
Jeen Broekstra
  • Field Details

    • DEFAULT_BUFFER_SIZE

      public static final int DEFAULT_BUFFER_SIZE
      Default buffer size. Buffer size is expressed in number of RDF statements. The default is set to 1024.
      See Also:
  • Constructor Details

    • BufferedGroupingRDFHandler

      public BufferedGroupingRDFHandler(RDFHandler... handlers)
      Creates a new BufferedGroupedWriter that wraps the supplied handlers, using the default buffer size.
      Parameters:
      handlers - one or more wrapped RDFHandlers
    • BufferedGroupingRDFHandler

      public BufferedGroupingRDFHandler(int bufferSize, RDFHandler... handlers)
      Creates a new BufferedGroupedWriter that wraps the supplied handlers, using the supplied buffer size.
      Parameters:
      bufferSize - size of the buffer expressed in number of RDF statements
      handlers - one or more wrapped RDFHandlers
  • Method Details