Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Inherited by Lucene.Net.Search.FieldCacheImpl.
Public Member Functions | |
sbyte[] | GetBytes (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
sbyte[] | GetBytes (IndexReader reader, System.String field, ByteParser parser) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
short[] | GetShorts (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as shorts and returns an array of size reader.MaxDoc of the value each document has in the given field. | |
short[] | GetShorts (IndexReader reader, System.String field, ShortParser parser) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as shorts and returns an array of size reader.MaxDoc of the value each document has in the given field. | |
int[] | GetInts (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
int[] | GetInts (IndexReader reader, System.String field, IntParser parser) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
float[] | GetFloats (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as floats and returns an array of size reader.MaxDoc of the value each document has in the given field. | |
float[] | GetFloats (IndexReader reader, System.String field, FloatParser parser) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field as floats and returns an array of size reader.MaxDoc of the value each document has in the given field. | |
long[] | GetLongs (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
long[] | GetLongs (IndexReader reader, System.String field, LongParser parser) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
double[] | GetDoubles (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
double[] | GetDoubles (IndexReader reader, System.String field, DoubleParser parser) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
System.String[] | GetStrings (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
StringIndex | GetStringIndex (IndexReader reader, System.String field) |
Checks the internal cache for an appropriate entry, and if none is 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. | |
CacheEntry[] | GetCacheEntries () |
EXPERT: Generates an array of CacheEntry objects representing all items currently in the FieldCache. NOTE: These CacheEntry objects maintain a strong refrence to the Cached Values. Maintaining refrences to a CacheEntry the IndexReader associated with it has garbage collected will prevent the Value itself from being garbage collected when the Cache drops the WeakRefrence. EXPERIMENTAL API: This API is considered extremely advanced and experimental. It may be removed or altered w/o warning in future releases of Lucene. | |
void | PurgeAllCaches () |
EXPERT: 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 (with out needing to rely on GC to free WeakReferences). It should not be relied on for "Cache maintenance" in general application code. EXPERIMENTAL API: This API is considered extremely advanced and experimental. It may be removed or altered w/o warning in future releases of Lucene. | |
void | Purge (IndexReader r) |
Expert: 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. | |
Properties | |
StreamWriter | InfoStream [get, set] |
Gets or sets the InfoStream for this FieldCache. | |
Definition at line 376 of file FieldCache.cs.
sbyte [] Lucene.Net.Search.FieldCache.GetBytes | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the single byte values. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
sbyte [] Lucene.Net.Search.FieldCache.GetBytes | ( | IndexReader | reader, |
System.String | field, | ||
ByteParser | parser | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the bytes. |
parser | Computes byte for string values. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
CacheEntry [] Lucene.Net.Search.FieldCache.GetCacheEntries | ( | ) |
EXPERT: Generates an array of CacheEntry objects representing all items currently in the FieldCache. NOTE: These CacheEntry objects maintain a strong refrence to the Cached Values. Maintaining refrences to a CacheEntry the IndexReader associated with it has garbage collected will prevent the Value itself from being garbage collected when the Cache drops the WeakRefrence. EXPERIMENTAL API: This API is considered extremely advanced and experimental. It may be removed or altered w/o warning in future releases of Lucene.
Implemented in Lucene.Net.Search.FieldCacheImpl.
double [] Lucene.Net.Search.FieldCache.GetDoubles | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the doubles. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
double [] Lucene.Net.Search.FieldCache.GetDoubles | ( | IndexReader | reader, |
System.String | field, | ||
DoubleParser | parser | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the doubles. |
parser | Computes integer for string values. |
<throws> IOException If any error occurs. </throws>
float [] Lucene.Net.Search.FieldCache.GetFloats | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field
as floats and returns an array of size reader.MaxDoc
of the value each document has in the given field.
reader | Used to get field values. |
field | Which field contains the floats. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
float [] Lucene.Net.Search.FieldCache.GetFloats | ( | IndexReader | reader, |
System.String | field, | ||
FloatParser | parser | ||
) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field
as floats and returns an array of size reader.MaxDoc
of the value each document has in the given field.
reader | Used to get field values. |
field | Which field contains the floats. |
parser | Computes float for string values. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
int [] Lucene.Net.Search.FieldCache.GetInts | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the integers. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
int [] Lucene.Net.Search.FieldCache.GetInts | ( | IndexReader | reader, |
System.String | field, | ||
IntParser | parser | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the integers. |
parser | Computes integer for string values. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
long [] Lucene.Net.Search.FieldCache.GetLongs | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the longs. |
<throws> java.io.IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
long [] Lucene.Net.Search.FieldCache.GetLongs | ( | IndexReader | reader, |
System.String | field, | ||
LongParser | parser | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the longs. |
parser | Computes integer for string values. |
<throws> IOException If any error occurs. </throws>
short [] Lucene.Net.Search.FieldCache.GetShorts | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field
as shorts and returns an array of size reader.MaxDoc
of the value each document has in the given field.
reader | Used to get field values. |
field | Which field contains the shorts. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
short [] Lucene.Net.Search.FieldCache.GetShorts | ( | IndexReader | reader, |
System.String | field, | ||
ShortParser | parser | ||
) |
Checks the internal cache for an appropriate entry, and if none is found, reads the terms in field
as shorts and returns an array of size reader.MaxDoc
of the value each document has in the given field.
reader | Used to get field values. |
field | Which field contains the shorts. |
parser | Computes short for string values. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
StringIndex Lucene.Net.Search.FieldCache.GetStringIndex | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the strings. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
System.String [] Lucene.Net.Search.FieldCache.GetStrings | ( | IndexReader | reader, |
System.String | field | ||
) |
Checks the internal cache for an appropriate entry, and if none is 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.
reader | Used to get field values. |
field | Which field contains the strings. |
<throws> IOException If any error occurs. </throws>
Implemented in Lucene.Net.Search.FieldCacheImpl.
void Lucene.Net.Search.FieldCache.Purge | ( | IndexReader | r | ) |
Expert: 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.
Implemented in Lucene.Net.Search.FieldCacheImpl.
void Lucene.Net.Search.FieldCache.PurgeAllCaches | ( | ) |
EXPERT: 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 (with out needing to rely on GC to free WeakReferences). It should not be relied on for "Cache maintenance" in general application code. EXPERIMENTAL API: This API is considered extremely advanced and experimental. It may be removed or altered w/o warning in future releases of Lucene.
Implemented in Lucene.Net.Search.FieldCacheImpl.
|
getset |
Gets or sets the InfoStream for this FieldCache.
If non-null, FieldCacheImpl will warn whenever entries are created that are not sane according to Lucene.Net.Util.FieldCacheSanityChecker.
Definition at line 641 of file FieldCache.cs.