public class BufferedGroupingRDFHandler extends RDFHandlerWrapper
RDFHandlerWrapper
that buffers statements internally and passes them to underlying handlers grouped by
context, then subject, then predicate.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE
Default buffer size.
|
Constructor and Description |
---|
BufferedGroupingRDFHandler(int bufferSize,
RDFHandler... handlers)
Creates a new BufferedGroupedWriter that wraps the supplied handlers, using the supplied buffer size.
|
BufferedGroupingRDFHandler(RDFHandler... handlers)
Creates a new BufferedGroupedWriter that wraps the supplied handlers, using the default buffer size.
|
Modifier and Type | Method and Description |
---|---|
void |
endRDF()
Signals the end of the RDF data.
|
void |
handleStatement(Statement st)
Handles a statement.
|
handleComment, handleNamespace, startRDF
public static final int DEFAULT_BUFFER_SIZE
public BufferedGroupingRDFHandler(RDFHandler... handlers)
handlers
- one or more wrapped RDFHandlerspublic BufferedGroupingRDFHandler(int bufferSize, RDFHandler... handlers)
bufferSize
- size of the buffer expressed in number of RDF statementshandlers
- one or more wrapped RDFHandlerspublic void handleStatement(Statement st) throws RDFHandlerException
RDFHandler
handleStatement
in interface RDFHandler
handleStatement
in class RDFHandlerWrapper
st
- The statement.RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.public void endRDF() throws RDFHandlerException
RDFHandler
endRDF
in interface RDFHandler
endRDF
in class RDFHandlerWrapper
RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.