public class GridLuceneIndex extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPIRATION_TIME_FIELD_NAME
Field name for value expiration time.
|
static String |
VAL_STR_FIELD_NAME
Field name for string representation of value.
|
static String |
VER_FIELD_NAME
Field name for value version.
|
| Constructor and Description |
|---|
GridLuceneIndex(GridKernalContext ctx,
@Nullable String cacheName,
GridQueryTypeDescriptor type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<K,V> GridCloseableIterator<IgniteBiTuple<K,V>> |
query(String qry,
IndexingQueryFilter filters)
Runs lucene fulltext query over this index.
|
void |
remove(CacheObject key)
Removes entry for given key from this index.
|
void |
store(CacheObject k,
CacheObject v,
GridCacheVersion ver,
long expires)
Stores given data in this fulltext index.
|
public static final String VAL_STR_FIELD_NAME
public static final String VER_FIELD_NAME
public static final String EXPIRATION_TIME_FIELD_NAME
public GridLuceneIndex(GridKernalContext ctx, @Nullable @Nullable String cacheName, GridQueryTypeDescriptor type) throws IgniteCheckedException
ctx - Kernal context.cacheName - Cache name.type - Type descriptor.IgniteCheckedException - If failed.public void store(CacheObject k, CacheObject v, GridCacheVersion ver, long expires) throws IgniteCheckedException
k - Key.v - Value.ver - Version.expires - Expiration time.IgniteCheckedException - If failed.public void remove(CacheObject key) throws IgniteCheckedException
key - Key.IgniteCheckedException - If failed.public <K,V> GridCloseableIterator<IgniteBiTuple<K,V>> query(String qry, IndexingQueryFilter filters) throws IgniteCheckedException
qry - Query.filters - Filters over result.IgniteCheckedException - If failed.public void close()
close in interface AutoCloseable
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.14-p2 Release Date : January 19 2026