gate.creole.annic.apache.lucene.search
Class FieldCacheImpl.Entry

java.lang.Object
  extended by gate.creole.annic.apache.lucene.search.FieldCacheImpl.Entry
Enclosing class:
FieldCacheImpl

static class FieldCacheImpl.Entry
extends Object

Expert: Every key in the internal cache is of this type.


Field Summary
(package private)  Object custom
           
(package private)  String field
           
(package private)  int hashcode
           
(package private)  IndexReader reader
           
(package private)  int type
           
 
Constructor Summary
FieldCacheImpl.Entry(IndexReader reader, String field, int type)
          Creates one of these objects.
FieldCacheImpl.Entry(IndexReader reader, String field, Object custom)
          Creates one of these objects for a custom comparator.
 
Method Summary
 boolean equals(Object o)
          Two of these are equal iff they reference the same reader, field and type.
 int hashCode()
          Composes a hashcode based on the referenced reader, field and type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

final IndexReader reader

field

final String field

type

final int type

custom

final Object custom

hashcode

final int hashcode
Constructor Detail

FieldCacheImpl.Entry

FieldCacheImpl.Entry(IndexReader reader,
                     String field,
                     int type)
Creates one of these objects.


FieldCacheImpl.Entry

FieldCacheImpl.Entry(IndexReader reader,
                     String field,
                     Object custom)
Creates one of these objects for a custom comparator.

Method Detail

equals

public boolean equals(Object o)
Two of these are equal iff they reference the same reader, field and type.

Overrides:
equals in class Object

hashCode

public int hashCode()
Composes a hashcode based on the referenced reader, field and type.

Overrides:
hashCode in class Object