本文整理了Java中org.apache.jena.graph.Graph.close()
方法的一些代码示例,展示了Graph.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.close()
方法的具体详情如下:
包路径:org.apache.jena.graph.Graph
类名称:Graph
方法名:close
[英]Free all resources, any further use of this Graph is an error.
[中]释放所有资源,进一步使用此图都是错误的。
代码示例来源:origin: apache/jena
@Override
public void close()
{
graph.close() ;
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
public void close()
{
L.close();
R.close();
this.closed = true;
}
代码示例来源:origin: apache/jena
@Override
public void close()
{
L.close();
R.close();
this.closed = true;
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
public void close()
{
super.close() ;
base.close() ;
additions.close() ;
deletions.close() ;
}
代码示例来源:origin: apache/jena
@Override
public void close()
{
super.close() ;
base.close() ;
additions.close() ;
deletions.close() ;
}
代码示例来源:origin: apache/jena
@Override
public void close() {
defaultGraph.close();
for ( Graph graph : graphs.values() )
graph.close();
super.close();
}
}
代码示例来源:origin: apache/jena
/**
* Free all resources, any further use of this Graph is an error.
*/
@Override
public void close() {
if (!closed) {
fdata.getGraph().close();
fdata = null;
super.close();
}
}
代码示例来源:origin: apache/jena
@After
public void shutdown()
{
if (null != distinct)
{
distinct.close() ;
}
if (null != duplicates)
{
duplicates.close();
}
}
代码示例来源:origin: apache/jena
protected Graph getClosed()
{
Graph result = getGraph();
result.close();
return result;
}
代码示例来源:origin: org.apache.jena/jena-core
public void testAnyName()
{
gf.createGraph( "plain" ).close();
gf.createGraph( "with.dot" ).close();
gf.createGraph( "http://electric-hedgehog.net/topic#marker" ).close();
}
代码示例来源:origin: apache/jena
@ContractTest
public void testAnyName() {
graphMaker.createGraph("plain").close();
graphMaker.createGraph("with.dot").close();
graphMaker.createGraph("http://electric-hedgehog.net/topic#marker")
.close();
}
代码示例来源:origin: org.apache.jena/jena-core
@ContractTest
public void testAnyName() {
graphMaker.createGraph("plain").close();
graphMaker.createGraph("with.dot").close();
graphMaker.createGraph("http://electric-hedgehog.net/topic#marker")
.close();
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
final public void cleanUp() {
for (Graph g : graphList) {
if (!g.isClosed()) {
GraphHelper.txnBegin(g);
g.close();
GraphHelper.txnCommit(g);
}
afterClose(g);
}
graphList.clear();
}
代码示例来源:origin: apache/jena
@ContractTest
public void testCarefulClose() {
Graph x = graphMaker.createGraph("x");
Graph y = graphMaker.openGraph("x");
x.add(GraphHelper.triple("a BB c"));
x.close();
y.add(GraphHelper.triple("p RR q"));
y.close();
}
代码示例来源:origin: org.apache.jena/jena-core
@ContractTest
public void testCarefulClose() {
Graph x = graphMaker.createGraph("x");
Graph y = graphMaker.openGraph("x");
x.add(GraphHelper.triple("a BB c"));
x.close();
y.add(GraphHelper.triple("p RR q"));
y.close();
}
代码示例来源:origin: org.apache.jena/jena-core
/**
* Test that we *can* open a graph that hasn't been created
*/
@ContractTest
public void testCanOpenUncreated() {
String name = jName("willBeCreated");
Graph g1 = graphMaker.openGraph(name);
g1.close();
graphMaker.openGraph(name, true);
}
代码示例来源:origin: org.apache.jena/jena-core
/**
A trivial test that getGraph delivers a proper graph, not cheating with null, and that
getGraph() "always" delivers the same Graph.
*/
public void testGetGraph()
{
Graph g1 = gf.getGraph();
assertFalse( "should deliver a Graph", g1 == null );
assertSame( g1, gf.getGraph() );
g1.close();
}
代码示例来源:origin: apache/jena
/**
* Foo trivial test that getGraph delivers a proper graph, not cheating with
* null, and that getGraph() "always" delivers the same Graph.
*/
@ContractTest
public void testGetGraph() {
Graph g1 = graphMaker.getGraph();
assertFalse("should deliver a Graph", g1 == null);
assertSame(g1, graphMaker.getGraph());
g1.close();
}
代码示例来源:origin: org.apache.jena/jena-core
public void testCloseSetsIsClosed()
{
Graph g = getGraph();
assertFalse( "unclosed Graph shouild not be isClosed()", g.isClosed() );
g.close();
assertTrue( "closed Graph should be isClosed()", g.isClosed() );
}
代码示例来源:origin: org.apache.jena/jena-core
/**
* Foo trivial test that getGraph delivers a proper graph, not cheating with
* null, and that getGraph() "always" delivers the same Graph.
*/
@ContractTest
public void testGetGraph() {
Graph g1 = graphMaker.getGraph();
assertFalse("should deliver a Graph", g1 == null);
assertSame(g1, graphMaker.getGraph());
g1.close();
}
内容来源于网络,如有侵权,请联系作者删除!