|
| FieldCacheImpl () |
|
virtual | ~FieldCacheImpl () |
|
virtual String | getClassName () |
|
boost::shared_ptr< FieldCacheImpl > | shared_from_this () |
|
virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed. More...
|
|
virtual void | purgeAllCaches () |
| Instructs the FieldCache to forcibly expunge all entries from the underlying caches. This is intended only to be used for test methods as a way to ensure a known base state of the Cache. It should not be relied on for "Cache maintenance" in general application code. More...
|
|
virtual void | purge (const IndexReaderPtr &r) |
| Drops all cache entries associated with this reader. NOTE: this reader must precisely match the reader that the cache entry is keyed on. If you pass a top-level reader, it usually will have no effect as Lucene now caches at the segment reader level. More...
|
|
virtual Collection< FieldCacheEntryPtr > | getCacheEntries () |
| Generates an array of CacheEntry objects representing all items currently in the FieldCache. More...
|
|
virtual Collection< uint8_t > | getBytes (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as a single byte and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< uint8_t > | getBytes (const IndexReaderPtr &reader, const String &field, const ByteParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as bytes and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int32_t > | getInts (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int32_t > | getInts (const IndexReaderPtr &reader, const String &field, const IntParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int64_t > | getLongs (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as longs and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int64_t > | getLongs (const IndexReaderPtr &reader, const String &field, const LongParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as longs and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< double > | getDoubles (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< double > | getDoubles (const IndexReaderPtr &reader, const String &field, const DoubleParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as doubles and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< String > | getStrings (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the term values in field and returns an array of size reader.maxDoc() containing the value each document has in the given field. More...
|
|
virtual StringIndexPtr | getStringIndex (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found reads the term values in field and returns an array of them in natural order, along with an array telling which element in the term array each document uses. More...
|
|
virtual void | setInfoStream (const InfoStreamPtr &stream) |
| If non-null, FieldCacheImpl will warn whenever entries are created that are not sane according to FieldCacheSanityChecker . More...
|
|
virtual InfoStreamPtr | getInfoStream () |
|
virtual | ~FieldCache () |
|
virtual String | getClassName () |
|
virtual Collection< uint8_t > | getBytes (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as a single byte and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< uint8_t > | getBytes (const IndexReaderPtr &reader, const String &field, const ByteParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as bytes and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int32_t > | getInts (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int32_t > | getInts (const IndexReaderPtr &reader, const String &field, const IntParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int64_t > | getLongs (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as longs and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< int64_t > | getLongs (const IndexReaderPtr &reader, const String &field, const LongParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as longs and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< double > | getDoubles (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as integers and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< double > | getDoubles (const IndexReaderPtr &reader, const String &field, const DoubleParserPtr &parser) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the terms in field as doubles and returns an array of size reader.maxDoc() of the value each document has in the given field. More...
|
|
virtual Collection< String > | getStrings (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found, reads the term values in field and returns an array of size reader.maxDoc() containing the value each document has in the given field. More...
|
|
virtual StringIndexPtr | getStringIndex (const IndexReaderPtr &reader, const String &field) |
| Checks the internal cache for an appropriate entry, and if none are found reads the term values in field and returns an array of them in natural order, along with an array telling which element in the term array each document uses. More...
|
|
virtual Collection< FieldCacheEntryPtr > | getCacheEntries ()=0 |
| Generates an array of CacheEntry objects representing all items currently in the FieldCache. More...
|
|
virtual void | purgeAllCaches ()=0 |
| Instructs the FieldCache to forcibly expunge all entries from the underlying caches. This is intended only to be used for test methods as a way to ensure a known base state of the Cache. It should not be relied on for "Cache maintenance" in general application code. More...
|
|
virtual void | purge (const IndexReaderPtr &r)=0 |
| Drops all cache entries associated with this reader. NOTE: this reader must precisely match the reader that the cache entry is keyed on. If you pass a top-level reader, it usually will have no effect as Lucene now caches at the segment reader level. More...
|
|
virtual void | setInfoStream (const InfoStreamPtr &stream) |
| If non-null, FieldCacheImpl will warn whenever entries are created that are not sane according to FieldCacheSanityChecker . More...
|
|
virtual InfoStreamPtr | getInfoStream () |
|
virtual | ~LuceneObject () |
|
virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed. More...
|
|
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
| Return clone of this object. More...
|
|
virtual int32_t | hashCode () |
| Return hash code for this object. More...
|
|
virtual bool | equals (const LuceneObjectPtr &other) |
| Return whether two objects are equal. More...
|
|
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
| Compare two objects. More...
|
|
virtual String | toString () |
| Returns a string representation of the object. More...
|
|
virtual | ~LuceneSync () |
|
virtual SynchronizePtr | getSync () |
| Return this object synchronize lock. More...
|
|
virtual LuceneSignalPtr | getSignal () |
| Return this object signal. More...
|
|
virtual void | lock (int32_t timeout=0) |
| Lock this object using an optional timeout. More...
|
|
virtual void | unlock () |
| Unlock this object. More...
|
|
virtual bool | holdsLock () |
| Returns true if this object is currently locked by current thread. More...
|
|
virtual void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout. More...
|
|
virtual void | notifyAll () |
| Notify all threads waiting for signal. More...
|
|
The default cache implementation, storing all values in memory. A WeakHashMap is used for storage.