static public BigdataValueCentricFullTextIndex getInstance( final IIndexManager indexManager, final String namespace, final Long timestamp, final Properties properties) { if (namespace == null) throw new IllegalArgumentException(); return new BigdataValueCentricFullTextIndex(indexManager, namespace, timestamp, properties); }
/** * The full text index is currently located in the same namespace as the * lexicon relation. However, the distributed zookeeper locks (ZLocks) * are not reentrant. Therefore this method is overridden to NOT acquire * the ZLock for the namespace of the relation when destroying the full * text index -- that lock is already held for the same namespace by the * {@link LexiconRelation}. */ @Override public void destroy() { if (log.isInfoEnabled()) log.info(""); assertWritable(); final String name = getNamespace() + "." + NAME_SEARCH; getIndexManager().dropIndex(name); }
/** * @param indexManager * @param namespace * @param timestamp * @param properties */ public BigdataValueCentricFullTextIndex(final IIndexManager indexManager, final String namespace, final Long timestamp, final Properties properties) { super(indexManager, namespace, timestamp, properties); /* * Also index datatype literals? */ indexDatatypeLiterals = Boolean .parseBoolean(getProperty( AbstractTripleStore.Options.TEXT_INDEX_DATATYPE_LITERALS, AbstractTripleStore.Options.DEFAULT_TEXT_INDEX_DATATYPE_LITERALS)); }
final synchronized public LexiconRelation getLexiconRelation() { if (lexiconRelation == null) { long t = getTimestamp(); if (TimestampUtility.isReadWriteTx(t)) { /* * A read-write tx must use the unisolated view of the lexicon. */ t = ITx.UNISOLATED; } // lexicon namespace, since this index is inside the lexicon final String ns = getNamespace(); if (log.isDebugEnabled()) log.debug(ns); lexiconRelation = (LexiconRelation) getIndexManager() .getResourceLocator().locate(ns, t); } return lexiconRelation; } private LexiconRelation lexiconRelation;
.getLexiconRelation().getSearchEngine()).getIndex() .rangeIterator();
public void create() { assertWritable(); final String name = getNamespace() + "." + NAME_SEARCH; final IIndexManager indexManager = getIndexManager(); final Properties p = getProperties();
final LexiconRelation lex = getLexiconRelation();
.getLexiconRelation().getSearchEngine()).getIndex() .rangeIterator();
public void create() { assertWritable(); final String name = getNamespace() + "." + NAME_SEARCH; final IIndexManager indexManager = getIndexManager(); final Properties p = getProperties();
final synchronized public LexiconRelation getLexiconRelation() { if (lexiconRelation == null) { long t = getTimestamp(); if (TimestampUtility.isReadWriteTx(t)) { /* * A read-write tx must use the unisolated view of the lexicon. */ t = ITx.UNISOLATED; } // lexicon namespace, since this index is inside the lexicon final String ns = getNamespace(); if (log.isDebugEnabled()) log.debug(ns); lexiconRelation = (LexiconRelation) getIndexManager() .getResourceLocator().locate(ns, t); } return lexiconRelation; } private LexiconRelation lexiconRelation;
final LexiconRelation lex = getLexiconRelation();
.getSearchEngine(); buffer_text = ((IScaleOutClientIndex) tmp.getIndex()).newWriteBuffer(
/** * The full text index is currently located in the same namespace as the * lexicon relation. However, the distributed zookeeper locks (ZLocks) * are not reentrant. Therefore this method is overridden to NOT acquire * the ZLock for the namespace of the relation when destroying the full * text index -- that lock is already held for the same namespace by the * {@link LexiconRelation}. */ @Override public void destroy() { if (log.isInfoEnabled()) log.info(""); assertWritable(); final String name = getNamespace() + "." + NAME_SEARCH; getIndexManager().dropIndex(name); }
final LexiconRelation lex = getLexiconRelation();
static public BigdataValueCentricFullTextIndex getInstance( final IIndexManager indexManager, final String namespace, final Long timestamp, final Properties properties) { if (namespace == null) throw new IllegalArgumentException(); return new BigdataValueCentricFullTextIndex(indexManager, namespace, timestamp, properties); }
/** * @param indexManager * @param namespace * @param timestamp * @param properties */ public BigdataValueCentricFullTextIndex(final IIndexManager indexManager, final String namespace, final Long timestamp, final Properties properties) { super(indexManager, namespace, timestamp, properties); /* * Also index datatype literals? */ indexDatatypeLiterals = Boolean .parseBoolean(getProperty( AbstractTripleStore.Options.TEXT_INDEX_DATATYPE_LITERALS, AbstractTripleStore.Options.DEFAULT_TEXT_INDEX_DATATYPE_LITERALS)); }
.getSearchEngine(); buffer_text = ((IScaleOutClientIndex) tmp.getIndex()).newWriteBuffer(
final LexiconRelation lex = getLexiconRelation();
.getLexiconRelation().getSearchEngine()).getIndex() .rangeIterator();