/** * Perform a fast range count on the statement indices. This reports an * estimate of the number of statements in the namespace. That estimate is * exact unless the namespace is provisioned for full read/write transactions * or the endpoint is scale-out. * * @return the range count (#of statements in the database). */ public long size() throws Exception { return rangeCount(/* s */null, /* p */null, /* o */null); }
public void test_ESTCARD_p2() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(null,// s RDFS.LABEL,// p null// o // null // c ); assertEquals(2, rangeCount); }
public void test_ESTCARD_p() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(null,// s RDF.TYPE,// p null// o // null // c ); assertEquals(3, rangeCount); }
/** * Report the fast range count (aka ESTCARD) associated with the specified * access path. */ public long count(final Resource s, final URI p, final Value o, final Resource... c) throws RepositoryException { try { final RemoteRepository remote = getRepositoryForConnection(); return remote.rangeCount(s, p, o, c); } catch (Exception ex) { throw new RepositoryException(ex); } }
public void test_ESTCARD_so() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(new URIImpl( "http://www.bigdata.com/Mike"),// s, RDF.TYPE,// p null// ,// o // null // c ); assertEquals(1, rangeCount); }
public void test_ESTCARD_s() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(new URIImpl( "http://www.bigdata.com/Mike"),// s null,// p null// o ); assertEquals(3, rangeCount); }
public void test_ESTCARD_o() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(null,// s null,// p new LiteralImpl("Mike")// o // null // c ); assertEquals(1, rangeCount); }
/** * Test the ESTCARD method (fast range count). */ public void test_ESTCARD_quads_01() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(null,// s, null,// p null// o // null // c ); assertEquals(7, rangeCount); }
public void test_ESTCARD_quads_03() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(null,// s, null,// p null,// o new URIImpl("http://www.bigdata.com/c1")// c ); assertEquals(2, rangeCount); }
public void test_ESTCARD_quads_02() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(null,// s, null,// p null,// o new URIImpl("http://www.bigdata.com/")// c ); assertEquals(3, rangeCount); }
public void test_ESTCARD_p2() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(null,// s RDFS.LABEL,// p null// o // null // c ); assertEquals(2, rangeCount); }
public void test_ESTCARD_p() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(null,// s RDF.TYPE,// p null// o // null // c ); assertEquals(3, rangeCount); }
public void test_ESTCARD_quads_04() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(new URIImpl( "http://www.bigdata.com/Mike"),// s, null,// p null,// o new URIImpl("http://www.bigdata.com/c1")// c ); assertEquals(1, rangeCount); }
public void test_ESTCARD_o() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(null,// s null,// p new LiteralImpl("Mike")// o // null // c ); assertEquals(1, rangeCount); }
public void test_ESTCARD_so() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(new URIImpl( "http://www.bigdata.com/Mike"),// s, RDF.TYPE,// p null// ,// o // null // c ); assertEquals(1, rangeCount); }
public void test_ESTCARD_s() throws Exception { doInsertbyURL("POST", packagePath + "test_estcard.ttl"); final long rangeCount = m_repo.rangeCount(new URIImpl( "http://www.bigdata.com/Mike"),// s null,// p null// o ); assertEquals(3, rangeCount); }
/** * Test the ESTCARD method (fast range count). */ public void test_ESTCARD_quads_01() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(null,// s, null,// p null// o // null // c ); assertEquals(7, rangeCount); }
public void test_ESTCARD_quads_02() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(null,// s, null,// p null,// o new URIImpl("http://www.bigdata.com/")// c ); assertEquals(3, rangeCount); }
public void test_ESTCARD_quads_03() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(null,// s, null,// p null,// o new URIImpl("http://www.bigdata.com/c1")// c ); assertEquals(2, rangeCount); }
public void test_ESTCARD_quads_04() throws Exception { if (TestMode.quads != getTestMode()) return; doInsertbyURL("POST", packagePath + "test_estcard.trig"); final long rangeCount = m_repo.rangeCount(new URIImpl( "http://www.bigdata.com/Mike"),// s, null,// p null,// o new URIImpl("http://www.bigdata.com/c1")// c ); assertEquals(1, rangeCount); }