false); perContextIterList.add(new NativeStatementIterator(btreeIter, valueStore));
@Override protected void handleClose() throws SailException { try { super.handleClose(); } finally { try { btreeIter.close(); } catch (IOException e) { throw causeIOException(e); } } }
@Override protected void handleClose() throws SailException { try { super.handleClose(); } finally { try { btreeIter.close(); } catch (IOException e) { throw causeIOException(e); } } }
false); perContextIterList.add(new NativeStatementIterator(btreeIter, valueStore));
public Statement getNextElement() throws SailException { try { byte[] nextValue = btreeIter.next(); if (nextValue == null) { return null; } int subjID = ByteArrayUtil.getInt(nextValue, TripleStore.SUBJ_IDX); Resource subj = (Resource)valueStore.getValue(subjID); int predID = ByteArrayUtil.getInt(nextValue, TripleStore.PRED_IDX); IRI pred = (IRI)valueStore.getValue(predID); int objID = ByteArrayUtil.getInt(nextValue, TripleStore.OBJ_IDX); Value obj = valueStore.getValue(objID); Resource context = null; int contextID = ByteArrayUtil.getInt(nextValue, TripleStore.CONTEXT_IDX); if (contextID != 0) { context = (Resource)valueStore.getValue(contextID); } return valueStore.createStatement(subj, pred, obj, context); } catch (IOException e) { throw causeIOException(e); } }
stIter1 = new NativeStatementIterator(btreeIter, valueStore);
public Statement getNextElement() throws SailException { try { byte[] nextValue = btreeIter.next(); if (nextValue == null) { return null; } int subjID = ByteArrayUtil.getInt(nextValue, TripleStore.SUBJ_IDX); Resource subj = (Resource)valueStore.getValue(subjID); int predID = ByteArrayUtil.getInt(nextValue, TripleStore.PRED_IDX); IRI pred = (IRI)valueStore.getValue(predID); int objID = ByteArrayUtil.getInt(nextValue, TripleStore.OBJ_IDX); Value obj = valueStore.getValue(objID); Resource context = null; int contextID = ByteArrayUtil.getInt(nextValue, TripleStore.CONTEXT_IDX); if (contextID != 0) { context = (Resource)valueStore.getValue(contextID); } return valueStore.createStatement(subj, pred, obj, context); } catch (IOException e) { throw causeIOException(e); } }
stIter1 = new NativeStatementIterator(btreeIter, valueStore);