Package com.complexible.common.rdf
Class StatementPropertiesSource
java.lang.Object
com.complexible.common.rdf.impl.AbstractStatementSource
com.complexible.common.rdf.StatementPropertiesSource
- All Implemented Interfaces:
StatementSource,com.complexible.stardog.index.QuadSource,Closeable,AutoCloseable
public class StatementPropertiesSource
extends com.complexible.common.rdf.impl.AbstractStatementSource
implements com.complexible.stardog.index.QuadSource
Represents edge-properties of all statements in the original
StatementSource- Since:
- 7.1
- Author:
- Pavel Klinov
-
Field Summary
Fields inherited from interface com.complexible.common.rdf.StatementSource
NO_ESTIMATE -
Constructor Summary
ConstructorsConstructorDescriptionStatementPropertiesSource(StatementSource theSource, com.complexible.stardog.index.IndexConnection theIdxConnection, CancelCheck theCheck) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the estimated count of statements in this source orNO_ESTIMATEif the estimate is not known.booleanReturns true if this source can be iterated multiple times with identical results.CloseableIterator<com.complexible.stardog.index.Quad> iterator()Return an iterator over the statements contained by this source.Methods inherited from class com.complexible.common.rdf.impl.AbstractStatementSource
close, getContext, streamsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.complexible.common.rdf.StatementSource
containsVirtual, inMemory
-
Constructor Details
-
StatementPropertiesSource
public StatementPropertiesSource(StatementSource theSource, com.complexible.stardog.index.IndexConnection theIdxConnection, CancelCheck theCheck)
-
-
Method Details
-
statements
Description copied from interface:StatementSourceReturn an iterator over the statements contained by this source.- Specified by:
statementsin interfaceStatementSource- Returns:
- an iteration over the statements.
-
iterator
- Specified by:
iteratorin interfacecom.complexible.stardog.index.QuadSource
-
estimatedCount
public long estimatedCount()Description copied from interface:StatementSourceReturns the estimated count of statements in this source orNO_ESTIMATEif the estimate is not known.- Specified by:
estimatedCountin interfaceStatementSource
-
isReusable
public boolean isReusable()Description copied from interface:StatementSourceReturns true if this source can be iterated multiple times with identical results. Sources backed by one-shot iterators or input streams are not reusable.- Specified by:
isReusablein interfacecom.complexible.stardog.index.QuadSource- Specified by:
isReusablein interfaceStatementSource- Returns:
- true if
StatementSource.statements()andStatementSource.streams()can be called multiple times
-