public class ProxySparqlStreamProcessor extends net.fortytwo.stream.sparql.RDFStreamProcessor<String,ProxySparqlStreamProcessor.Query>
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxySparqlStreamProcessor.Query |
| Modifier and Type | Field and Description |
|---|---|
static String |
DATASET |
static String |
EXPIRATION_TIME |
static String |
MAPPING |
static String |
QUERY |
static String |
QUERY_ID |
static String |
SOLUTION |
static String |
TAG_RDF_DATA |
static String |
TAG_SPARQL_QUERY |
static String |
TAG_SPARQL_RESULT |
static String |
TTL |
| Constructor and Description |
|---|
ProxySparqlStreamProcessor(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatements(int ttl,
org.openrdf.model.Statement... statements) |
protected boolean |
addTuple(org.openrdf.model.Value[] tuple,
int ttl,
long now) |
void |
clear() |
protected net.fortytwo.stream.BasicSubscription<String,ProxySparqlStreamProcessor.Query,org.openrdf.query.BindingSet> |
createSubscription(int ttl,
String sparqlQuery,
java.util.function.BiConsumer<org.openrdf.query.BindingSet,Long> consumer) |
void |
notifyConnectionOpen() |
protected String |
parseQuery(String queryStr) |
boolean |
renew(net.fortytwo.stream.BasicSubscription<String,ProxySparqlStreamProcessor.Query,org.openrdf.query.BindingSet> subscription,
int i) |
void |
setClock(java.util.function.Supplier<Long> clock) |
void |
unregister(net.fortytwo.stream.BasicSubscription<String,ProxySparqlStreamProcessor.Query,org.openrdf.query.BindingSet> subscription) |
addInputs, addQuery, addQueryNative, beginOperation, clearCounters, get, getNow, handleSolution, increment, incrementQueries, incrementSolutions, incrementStatements, isActive, logEntry, logHeader, setDoPerformanceMetrics, setDoUseCompactLogFormat, shutDown, toExpirationTimepublic static final String TAG_RDF_DATA
public static final String TAG_SPARQL_QUERY
public static final String TAG_SPARQL_RESULT
public static final String MAPPING
public static final String DATASET
public static final String EXPIRATION_TIME
public static final String QUERY
public static final String QUERY_ID
public static final String SOLUTION
public static final String TTL
public ProxySparqlStreamProcessor(Connection connection)
public void clear()
public void notifyConnectionOpen()
throws IOException
IOExceptionprotected net.fortytwo.stream.BasicSubscription<String,ProxySparqlStreamProcessor.Query,org.openrdf.query.BindingSet> createSubscription(int ttl, String sparqlQuery, java.util.function.BiConsumer<org.openrdf.query.BindingSet,Long> consumer)
createSubscription in class net.fortytwo.stream.sparql.RDFStreamProcessor<String,ProxySparqlStreamProcessor.Query>protected boolean addTuple(org.openrdf.model.Value[] tuple,
int ttl,
long now)
addTuple in class net.fortytwo.stream.sparql.RDFStreamProcessor<String,ProxySparqlStreamProcessor.Query>public void unregister(net.fortytwo.stream.BasicSubscription<String,ProxySparqlStreamProcessor.Query,org.openrdf.query.BindingSet> subscription)
unregister in class net.fortytwo.stream.BasicStreamProcessor<String,String,ProxySparqlStreamProcessor.Query,org.openrdf.model.Statement,org.openrdf.query.BindingSet>protected String parseQuery(String queryStr) throws net.fortytwo.stream.StreamProcessor.InvalidQueryException, net.fortytwo.stream.StreamProcessor.IncompatibleQueryException
parseQuery in class net.fortytwo.stream.sparql.RDFStreamProcessor<String,ProxySparqlStreamProcessor.Query>net.fortytwo.stream.StreamProcessor.InvalidQueryExceptionnet.fortytwo.stream.StreamProcessor.IncompatibleQueryExceptionpublic boolean renew(net.fortytwo.stream.BasicSubscription<String,ProxySparqlStreamProcessor.Query,org.openrdf.query.BindingSet> subscription, int i)
renew in class net.fortytwo.stream.BasicStreamProcessor<String,String,ProxySparqlStreamProcessor.Query,org.openrdf.model.Statement,org.openrdf.query.BindingSet>public void addStatements(int ttl,
org.openrdf.model.Statement... statements)
throws IOException
IOExceptionpublic void setClock(java.util.function.Supplier<Long> clock)
setClock in interface net.fortytwo.stream.StreamProcessor<String,org.openrdf.model.Statement,org.openrdf.query.BindingSet>setClock in class net.fortytwo.stream.sparql.RDFStreamProcessor<String,ProxySparqlStreamProcessor.Query>Copyright © 2017. All Rights Reserved.