/** * If an index exists by context - use it, otherwise return null. * * @param readTransaction * @return All triples sorted by context or null if no context index exists * @throws IOException */ public RecordIterator getAllTriplesSortedByContext(boolean readTransaction) throws IOException { if (readTransaction) { // Don't read removed statements return getAllTriplesSortedByContext(0, TripleStore.REMOVED_FLAG); } else { // Don't read added statements return getAllTriplesSortedByContext(0, TripleStore.ADDED_FLAG); } }
/** * If an index exists by context - use it, otherwise return null. * * @param readTransaction * @return All triples sorted by context or null if no context index exists * @throws IOException */ public RecordIterator getAllTriplesSortedByContext(boolean readTransaction) throws IOException { if (readTransaction) { // Don't read removed statements return getAllTriplesSortedByContext(0, TripleStore.REMOVED_FLAG); } else { // Don't read added statements return getAllTriplesSortedByContext(0, TripleStore.ADDED_FLAG); } }
btreeIter = tripleStore.getAllTriplesSortedByContext(false); if (btreeIter == null) {
btreeIter = tripleStore.getAllTriplesSortedByContext(false); if (btreeIter == null) {