thinkmap.server.search
Class IndexMetadata

java.lang.Object
  extended by thinkmap.server.search.IndexMetadata
All Implemented Interfaces:
Serializable

public class IndexMetadata
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  Map<String,Set<FieldDef<?>>> condensedFieldMap
           
protected  int documentCount
           
protected  Map<String,Map<String,FieldDef<?>>> fieldMap
           
protected  Date lastIndexTime
           
protected  Map<String,List<String>> typeMap
           
 
Constructor Summary
IndexMetadata(IDataSource ds)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getDocumentCount()
           
 Date getLastIndexTime()
           
protected static IndexMetadata load(org.apache.lucene.search.IndexSearcher is)
           
protected  void save(org.apache.lucene.index.IndexWriter writer)
           
protected  List<String> typeList(HashMap<String,EntityType> types, String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastIndexTime

protected Date lastIndexTime

documentCount

protected int documentCount

typeMap

protected Map<String,List<String>> typeMap

fieldMap

protected Map<String,Map<String,FieldDef<?>>> fieldMap

condensedFieldMap

protected Map<String,Set<FieldDef<?>>> condensedFieldMap
Constructor Detail

IndexMetadata

public IndexMetadata(IDataSource ds)
Method Detail

getLastIndexTime

public Date getLastIndexTime()

getDocumentCount

public int getDocumentCount()

load

protected static IndexMetadata load(org.apache.lucene.search.IndexSearcher is)
                             throws IOException
Throws:
IOException

save

protected void save(org.apache.lucene.index.IndexWriter writer)
             throws IOException
Throws:
IOException

typeList

protected List<String> typeList(HashMap<String,EntityType> types,
                                String type)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.