/** {@inheritDoc} */ public int getIndexLevel() { if (_ri == null) { return 0; } else { return _ri.getIndexLevel(); } }
/** * Shutdown the RI module by closing the wrapped ResourceIndex. * * @throws ModuleShutdownException if any error occurs while closing. */ @Override public void shutdownModule() throws ModuleShutdownException { if (_ri != null) { try { _ri.close(); } catch (TrippiException e) { throw new ModuleShutdownException("Error closing RI", getRole(), e); } } }
/** {@inheritDoc} */ public String[] listTripleLanguages() { return _ri.listTripleLanguages(); }
/** {@inheritDoc} */ public int countTriples( String queryLang, String tupleQuery, String tripleTemplate, int limit, boolean distinct) throws TrippiException { return _ri.countTriples(queryLang, tupleQuery, tripleTemplate, limit, distinct); }
/** {@inheritDoc} */ public int getBufferSize() { return _ri.getBufferSize(); }
/** {@inheritDoc} */ public void flushBuffer() throws IOException, TrippiException { _ri.flushBuffer(); }
/** {@inheritDoc} */ public void delete(TripleIterator triples, boolean flush) throws IOException, TrippiException { _ri.delete(triples, flush); }
/** {@inheritDoc} */ public void add(Triple triple, boolean flush) throws IOException, TrippiException { _ri.add(triple, flush); }
/** {@inheritDoc} */ public void export(OutputStream out, RDFFormat format) throws ResourceIndexException { _ri.export(out, format); }
/** {@inheritDoc} */ public List<Triple> exportObject(DOReader object) throws ResourceIndexException { return _ri.exportObject(object); }
/** {@inheritDoc} */ public void deleteObject(DOReader oldReader) throws ResourceIndexException { _ri.deleteObject(oldReader); }
/** {@inheritDoc} */ public void modifyObject(DOReader oldReader, DOReader newReader) throws ResourceIndexException { _ri.modifyObject(oldReader, newReader); }
/** {@inheritDoc} */ public void addObject(DOReader reader) throws ResourceIndexException { _ri.addObject(reader); }
/** {@inheritDoc} */ public boolean getSync() { return _ri.getSync(); }
/** {@inheritDoc} */ public void add(List<Triple> triples, boolean flush) throws IOException, TrippiException { _ri.add(triples, flush); }
/** {@inheritDoc} */ public void setAliasMap(Map<String, String> aliasToPrefix) throws TrippiException { _ri.setAliasMap(aliasToPrefix); }
/** {@inheritDoc} */ public void add(TripleIterator triples, boolean flush) throws IOException, TrippiException { _ri.add(triples, flush); }
/** {@inheritDoc} */ public Map<String, String> getAliasMap() throws TrippiException { return _ri.getAliasMap(); }
/** {@inheritDoc} */ public void delete(List<Triple> triples, boolean flush) throws IOException, TrippiException { _ri.delete(triples, flush); }
/** {@inheritDoc} */ public TripleIterator findTriples( SubjectNode subject, PredicateNode predicate, ObjectNode object, int limit) throws TrippiException { return _ri.findTriples(subject, predicate, object, limit); }
/** {@inheritDoc} */ public void delete(Triple triple, boolean flush) throws IOException, TrippiException { _ri.delete(triple, flush); }
/** {@inheritDoc} */ public int countTriples( SubjectNode subject, PredicateNode predicate, ObjectNode object, int limit) throws TrippiException { return _ri.countTriples(subject, predicate, object, limit); }
/** {@inheritDoc} */ public void setFlushErrorHandler(FlushErrorHandler h) { _ri.setFlushErrorHandler(h); }
/** {@inheritDoc} */ public TripleIterator findTriples( String queryLang, String tupleQuery, String tripleTemplate, int limit, boolean distinct) throws TrippiException { return _ri.findTriples(queryLang, tupleQuery, tripleTemplate, limit, distinct); }
/** {@inheritDoc} */ public List<TripleUpdate> findBufferedUpdates( SubjectNode subject, PredicateNode predicate, ObjectNode object, int updateType) { return _ri.findBufferedUpdates(subject, predicate, object, updateType); }
@Override public String getNameForId(int id) { return resourceIndex.getResourceName(id); }