Home » lucene-3.0.1-src » org.apache » lucene » search » [javadoc | source]
org.apache.lucene.search
class: FieldCacheImpl [javadoc | source]
java.lang.Object
   org.apache.lucene.search.FieldCacheImpl

All Implemented Interfaces:
    FieldCache

Direct Known Subclasses:
    ExtendedFieldCacheImpl

Expert: The default cache implementation, storing all values in memory. A WeakHashMap is used for storage.

Created: May 19, 2004 4:40:36 PM

Nested Class Summary:
static final class  FieldCacheImpl.StopFillCacheException  Hack: When thrown from a Parser (NUMERIC_UTILS_* ones), this stops processing terms and returns the current FieldCache array. 
abstract static class  FieldCacheImpl.Cache  Expert: Internal cache. 
static class  FieldCacheImpl.Entry  Expert: Every composite-key in the internal cache is of this type. 
static final class  FieldCacheImpl.ByteCache   
static final class  FieldCacheImpl.ShortCache   
static final class  FieldCacheImpl.IntCache   
static final class  FieldCacheImpl.FloatCache   
static final class  FieldCacheImpl.LongCache   
static final class  FieldCacheImpl.DoubleCache   
static final class  FieldCacheImpl.StringCache   
static final class  FieldCacheImpl.StringIndexCache   
Constructor:
 FieldCacheImpl() 
Method from org.apache.lucene.search.FieldCacheImpl Summary:
getBytes,   getBytes,   getCacheEntries,   getDoubles,   getDoubles,   getFloats,   getFloats,   getInfoStream,   getInts,   getInts,   getLongs,   getLongs,   getShorts,   getShorts,   getStringIndex,   getStrings,   purgeAllCaches,   setInfoStream
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.FieldCacheImpl Detail:
 public byte[] getBytes(IndexReader reader,
    String field) throws IOException 
 public byte[] getBytes(IndexReader reader,
    String field,
    ByteParser parser) throws IOException 
 public CacheEntry[] getCacheEntries() 
 public double[] getDoubles(IndexReader reader,
    String field) throws IOException 
 public double[] getDoubles(IndexReader reader,
    String field,
    DoubleParser parser) throws IOException 
 public float[] getFloats(IndexReader reader,
    String field) throws IOException 
 public float[] getFloats(IndexReader reader,
    String field,
    FloatParser parser) throws IOException 
 public PrintStream getInfoStream() 
 public int[] getInts(IndexReader reader,
    String field) throws IOException 
 public int[] getInts(IndexReader reader,
    String field,
    IntParser parser) throws IOException 
 public long[] getLongs(IndexReader reader,
    String field) throws IOException 
 public long[] getLongs(IndexReader reader,
    String field,
    LongParser parser) throws IOException 
 public short[] getShorts(IndexReader reader,
    String field) throws IOException 
 public short[] getShorts(IndexReader reader,
    String field,
    ShortParser parser) throws IOException 
 public StringIndex getStringIndex(IndexReader reader,
    String field) throws IOException 
 public String[] getStrings(IndexReader reader,
    String field) throws IOException 
 public  void purgeAllCaches() 
 public  void setInfoStream(PrintStream stream)