public class GridLuceneIndex extends Object implements Closeable
| Constructor and Description |
|---|
GridLuceneIndex(org.gridgain.grid.spi.indexing.GridIndexingMarshaller marshaller,
org.gridgain.grid.util.offheap.unsafe.GridUnsafeMemory mem,
String spaceName,
org.gridgain.grid.spi.indexing.GridIndexingTypeDescriptor type,
boolean storeVal)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<K,V> org.gridgain.grid.util.lang.GridCloseableIterator<org.gridgain.grid.spi.indexing.GridIndexingKeyValueRow<K,V>> |
query(String qry,
org.gridgain.grid.spi.indexing.GridIndexingQueryFilter<K,V>[] filters)
Runs lucene fulltext query over this index.
|
void |
remove(org.gridgain.grid.spi.indexing.GridIndexingEntity<?> key)
Removes entry for given key from this index.
|
void |
store(org.gridgain.grid.spi.indexing.GridIndexingEntity<?> key,
org.gridgain.grid.spi.indexing.GridIndexingEntity<?> val,
byte[] ver,
long expires)
Stores given data in this fulltext index.
|
public GridLuceneIndex(org.gridgain.grid.spi.indexing.GridIndexingMarshaller marshaller,
@Nullable
org.gridgain.grid.util.offheap.unsafe.GridUnsafeMemory mem,
@Nullable
String spaceName,
org.gridgain.grid.spi.indexing.GridIndexingTypeDescriptor type,
boolean storeVal)
throws org.gridgain.grid.spi.GridSpiException
marshaller - Indexing marshaller.mem - Unsafe memory.spaceName - Space name.type - Type descriptor.storeVal - Store value in index.org.gridgain.grid.spi.GridSpiException - If failed.public void store(org.gridgain.grid.spi.indexing.GridIndexingEntity<?> key,
org.gridgain.grid.spi.indexing.GridIndexingEntity<?> val,
byte[] ver,
long expires)
throws org.gridgain.grid.spi.GridSpiException
key - Key.val - Value.ver - Version.expires - Expiration time.org.gridgain.grid.spi.GridSpiException - If failed.public void remove(org.gridgain.grid.spi.indexing.GridIndexingEntity<?> key)
throws org.gridgain.grid.spi.GridSpiException
key - Key.org.gridgain.grid.spi.GridSpiException - If failed.public <K,V> org.gridgain.grid.util.lang.GridCloseableIterator<org.gridgain.grid.spi.indexing.GridIndexingKeyValueRow<K,V>> query(String qry, org.gridgain.grid.spi.indexing.GridIndexingQueryFilter<K,V>[] filters) throws org.gridgain.grid.spi.GridSpiException
qry - Query.filters - Filters over result.org.gridgain.grid.spi.GridSpiException - If failed.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014. All rights reserved.