public class BigdataValueCentricFullTextIndex extends FullTextIndex implements IValueCentricTextIndexer<Hit>
FullTextIndex.Options
ITextIndexer.FullTextQuery
NAME_SEARCH
indexManager
Constructor and Description |
---|
BigdataValueCentricFullTextIndex(IIndexManager indexManager,
String namespace,
Long timestamp,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected Hit[] |
applyRegex(Hit[] hits,
Pattern regex)
Subclasses can override this method to do regex post-processing.
|
void |
create()
Conditionally registers the necessary index(s).
|
void |
destroy()
The full text index is currently located in the same namespace as the
lexicon relation.
|
boolean |
getIndexDatatypeLiterals()
Return
true iff datatype literals are being indexed. |
static BigdataValueCentricFullTextIndex |
getInstance(IIndexManager indexManager,
String namespace,
Long timestamp,
Properties properties) |
LexiconRelation |
getLexiconRelation() |
void |
index(int capacity,
Iterator<BigdataValue> valuesIterator)
Add the terms to the full text index so that we can do fast lookup of the
corresponding term identifiers.
|
protected Hit[] |
matchExact(Hit[] hits,
String query)
Subclasses can override this method to do exact match processing.
|
_search, count, delete, executeQuery, getAnalyzer, getElementClass, getIndex, getIndexNames, getKeyBuilder, getKeyOrder, getKeyOrders, getPrimaryKeyOrder, getTokenStream, index, index, insert, isOverwrite, isReadOnly, newElement, search, slice, tokenize
getAccessPath, getAccessPath, getAccessPath, getFQN, getFQN, getFQN, getIndex, getIndex, getIndex, newAccessPath, newIndexMetadata
acquireExclusiveLock, assertWritable, getBareProperties, getChunkCapacity, getChunkOfChunksCapacity, getChunkTimeout, getCommitTime, getContainer, getContainerNamespace, getExecutorService, getFullyBufferedReadThreshold, getIndexManager, getMaxParallelSubqueries, getNamespace, getProperties, getProperty, getProperty, getTimestamp, init, isForceSerialExecution, toString, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
count, search
getExecutorService, getIndexManager
getContainerNamespace, getNamespace, getTimestamp, init
public BigdataValueCentricFullTextIndex(IIndexManager indexManager, String namespace, Long timestamp, Properties properties)
indexManager
- namespace
- timestamp
- properties
- public static BigdataValueCentricFullTextIndex getInstance(IIndexManager indexManager, String namespace, Long timestamp, Properties properties)
public boolean getIndexDatatypeLiterals()
ITextIndexer
true
iff datatype literals are being indexed.getIndexDatatypeLiterals
in interface ITextIndexer<Hit>
public void create()
create
in interface ITextIndexer<Hit>
create
in interface IMutableResource
create
in class FullTextIndex
IllegalStateException
- if the client does not have write access.public void destroy()
LexiconRelation
.destroy
in interface ITextIndexer<Hit>
destroy
in interface IMutableResource
destroy
in class FullTextIndex
public void index(int capacity, Iterator<BigdataValue> valuesIterator)
IValueCentricTextIndexer
Add the terms to the full text index so that we can do fast lookup of the
corresponding term identifiers. Only literals are tokenized. Literals
that have a language code property are parsed using a tokenizer
appropriate for the specified language family. Other literals and URIs
are tokenized using the default Locale
.
index
in interface IValueCentricTextIndexer<Hit>
capacity
- A hint to the underlying layer about the buffer size before an
incremental flush of the index.public final LexiconRelation getLexiconRelation()
protected Hit[] matchExact(Hit[] hits, String query)
FullTextIndex
matchExact
in class FullTextIndex
protected Hit[] applyRegex(Hit[] hits, Pattern regex)
FullTextIndex
applyRegex
in class FullTextIndex
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.