本文整理汇总了Java中org.apache.jena.atlas.lib.NotImplemented类的典型用法代码示例。如果您正苦于以下问题:Java NotImplemented类的具体用法?Java NotImplemented怎么用?Java NotImplemented使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NotImplemented类属于org.apache.jena.atlas.lib包,在下文中一共展示了NotImplemented类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: destination
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
/** Connect to a destination for changes */
public static RDFChanges destination(String dest) {
// TODO text vs binary
if ( dest.startsWith("file:") ) {
OutputStream out = IO.openOutputFile(dest) ;
TokenWriter tokenWriter = new TokenWriterText(out) ;
RDFChanges sc = new RDFChangesWriter(tokenWriter) ;
return sc ;
}
if ( dest.startsWith("delta:") ) { // TCP connection delta:HOST:PORT
throw new NotImplemented(dest) ;
}
if ( dest.startsWith("http:") || dest.startsWith("https:") ) {
// Triggered on each transaction.
return new RDFChangesHTTP(dest, ()->dest, null) ;
}
throw new IllegalArgumentException("Not understood: "+dest) ;
}
示例2: attach
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
public static DataSourceClient attach(String filearea) {
Path path = Paths.get(filearea);
if ( ! Files.exists(path) ) {
LOG.error("No such directory: "+filearea);
throw new DeltaException("No such directory: "+filearea);
}
if ( ! Files.isDirectory(path) ) {
LOG.error("Not a directory: "+filearea);
throw new DeltaException("Not a directory: "+filearea);
}
Path statePath = path.resolve(stateFile);
RefLong version = new PersistentState(statePath);
Path dataPath = path.resolve(dataDirectory);
// XXX Check data path
if ( Files.exists(dataPath) ) {}
throw new NotImplemented();
//return new DataSourceClient(null, null);
}
示例3: UNUSED_CURRENTLY_forkUpdateFetcher
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
private static void UNUSED_CURRENTLY_forkUpdateFetcher(String source, DatasetGraph dsg) {
if ( true ) {
Log.warn(DeltaAssembler.class, "forkUpdateFetcher not set up");
if ( true ) return;
throw new NotImplemented("NEED THE STATE AREA; NEED THE DATASOURCE ID; NEED THE CLIENT ID");
}
DeltaLink dc = DeltaLinkHTTP.connect(source) ;
DeltaConnection client = null;
Runnable r = ()->{
try { client.sync(); }
catch (Exception ex) {
Delta.DELTA_LOG.warn("Failed to sync with the change server: "+ex.getMessage()) ;
// // Delay this task ; extra 3s + the time interval of 2s.
// Dones not work as expected.
// Lib.sleep(5*1000);
}
} ;
ScheduledExecutorService executor = Executors.newScheduledThreadPool(1) ;
executor.scheduleWithFixedDelay(r, 2, 2, TimeUnit.SECONDS) ;
}
示例4: evaluateBlockFilter
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
@Override
protected QueryIterator evaluateBlockFilter(Node graphNode, BasicPattern bgp, ExprList exprs, QueryIterator input) {
// XXX Do as quads.
Graph graph ;
// chooseGraph
if ( graphNode == null )
graph = dataset.getDefaultGraph() ;
else if ( Var.isVar(graphNode) )
throw new NotImplemented("OpExecutorMain.executeBlockFilter[Variable]") ;
else if ( graphNode == Node.ANY )
throw new NotImplemented("OpExecutorMain.executeBlockFilter[Node.ANY]") ;
else
graph = dataset.getGraph(graphNode) ;
return evaluateBlockFilter(graph, bgp, exprs, input);
}
示例5: chooseGraph
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
/** Choose a graph from a DatasetGraph.
* If it's the union, provide a union graph (not always the best way to deal with union).
* @param dataset
* @param graphNode
* @return Graph
*/
protected static Graph chooseGraph(DatasetGraph dataset, Node graphNode) {
if ( graphNode == null )
return dataset.getDefaultGraph() ;
else if ( Var.isVar(graphNode) )
throw new NotImplemented("Choosing a graph OpExecutorStage.executeBlockFilter[Variable]") ;
else if ( graphNode == Node.ANY )
throw new NotImplemented("OpExecutorMain.executeBlockFilter[Node.ANY]") ;
else if ( Quad.isUnionGraph(graphNode) ) {
// TODO Check this! Work needed here to consolidate union graph handling.
List<Node> graphs = Iter.toList(dataset.listGraphNodes()) ;
return new GraphUnionRead(dataset, graphs) ;
}
else
return dataset.getGraph(graphNode) ;
}
示例6: visit
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
/**
* Translates a REDUCE into corresponding Impala SQL commands.
*
* @param impalaReduced
* REDUCE in the ImpalaOp Tree
*/
@Override
public void visit(ImpalaReduced impalaReduced) {
throw new NotImplemented();
// String[] s = impalaReduced.translate(Tags.REDUCED);
// prependToScript(s[0]);
// appendToScript(s[1]);
}
示例7: localStorage
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
/** Create a dataset appropriate to the storage type.
* This does <em>not</em> write the configuration details into the on-disk zone information.
*/
public DatasetGraph localStorage(LocalStorageType storage, Path dataPath) {
switch(storage) {
case EXTERNAL: return null;
case MEM: return DatasetGraphFactory.createTxnMem();
// case NONE: return null;
case TDB:
return TDBFactory.createDatasetGraph(IOX.asLocation(dataPath));
default :
throw new NotImplemented("Zone::localStorage = "+storage);
}
}
示例8: executeOp
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
QueryIterator executeOp(Op op, QueryIterator input) {
// input?
if ( input instanceof QueryIterRoot )
input.close() ;
else
throw new NotImplemented("Non-root QueryIterator input") ;
return exec(op) ;
}
示例9: translate
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
@Override
public SqlStatement translate(String name, SqlStatement child) {
// TODO Auto-generated method stub
throw new NotImplemented();
}
示例10: addOffset
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
@Override
public boolean addOffset(int i) {
// TODO Auto-generated method stub
throw new NotImplemented();
}
示例11: translate
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
@Override
public SQLStatement translate(String name, SQLStatement child) {
// TODO Auto-generated method stub
throw new NotImplemented();
}
示例12: createTupleReaderBin
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
public static TupleReader createTupleReaderBin(InputStream in) {
throw new NotImplemented() ;
}
示例13: checkFixity
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
@Override
public void checkFixity() {
throw new NotImplemented("Method checkFixity() is not implemented");
}
示例14: parsePlacement
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
public static void parsePlacement(ConfCluster confCluster, String file) {
throw new NotImplemented() ;
}
示例15: clear
import org.apache.jena.atlas.lib.NotImplemented; //导入依赖的package包/类
@Override
public void clear() {
throw new NotImplemented("TupleIndexRemote.clear") ;
}