com.atlassian.jira.issue.search.parameters.lucene.sort
Class JiraLuceneFieldCache

java.lang.Object
  extended bycom.atlassian.jira.issue.search.parameters.lucene.sort.JiraLuceneFieldCache

public class JiraLuceneFieldCache
extends Object


Nested Class Summary
(package private) static class JiraLuceneFieldCache.Entry
          Expert: Every key in the internal cache is of this type.
 
Field Summary
(package private)  Map cache
          The internal cache.
static JiraLuceneFieldCache FIELD_CACHE
           
 
Constructor Summary
JiraLuceneFieldCache()
           
 
Method Summary
 Object[] getCustom(org.apache.lucene.index.IndexReader reader, String field, MappedSortComparator comparator)
           
 Collection[] getMatches(org.apache.lucene.index.IndexReader reader, String field)
          Return a BitSet that contains 'true' for every document that
(package private)  Object lookup(org.apache.lucene.index.IndexReader reader, String field, int type)
          See if an object is in the cache.
(package private)  Object lookup(org.apache.lucene.index.IndexReader reader, String field, Object comparer)
          See if a custom object is in the cache.
(package private)  Object store(org.apache.lucene.index.IndexReader reader, String field, int type, Object value)
          Put an object into the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_CACHE

public static final JiraLuceneFieldCache FIELD_CACHE

cache

final Map cache
The internal cache. Maps Entry to array of interpreted term values. *

Constructor Detail

JiraLuceneFieldCache

public JiraLuceneFieldCache()
Method Detail

getCustom

public Object[] getCustom(org.apache.lucene.index.IndexReader reader,
                          String field,
                          MappedSortComparator comparator)
                   throws IOException
Throws:
IOException

getMatches

public Collection[] getMatches(org.apache.lucene.index.IndexReader reader,
                               String field)
                        throws IOException
Return a BitSet that contains 'true' for every document that

Parameters:
reader -
field -
Throws:
IOException

lookup

Object lookup(org.apache.lucene.index.IndexReader reader,
              String field,
              Object comparer)
See if a custom object is in the cache.


lookup

Object lookup(org.apache.lucene.index.IndexReader reader,
              String field,
              int type)
See if an object is in the cache.


store

Object store(org.apache.lucene.index.IndexReader reader,
             String field,
             int type,
             Object value)
Put an object into the cache.



Copyright © 2002-2007 Atlassian. All Rights Reserved.