com.avaje.ebean.config.lucene
Class AbstractIndexDefn<T>

java.lang.Object
  extended by com.avaje.ebean.config.lucene.AbstractIndexDefn<T>
Type Parameters:
T - The bean type the index is on
All Implemented Interfaces:
IndexDefn<T>

public abstract class AbstractIndexDefn<T>
extends Object
implements IndexDefn<T>

Provides default implementations for IndexDefn settings.

Author:
rbygrave

Constructor Summary
AbstractIndexDefn()
           
 
Method Summary
 org.apache.lucene.analysis.Analyzer getAnalyzer()
          Return the default Analyzer to use for this index.
 int getMaxBufferedDocs()
          Return the max buffered documents for this index.
 org.apache.lucene.index.IndexWriter.MaxFieldLength getMaxFieldLength()
          Return the max field length to use for this index.
 double getRAMBufferSizeMB()
          Return the ram buffer size for this index.
 int getTermIndexInterval()
          Return the term index interval.
 void visitCreatedField(org.apache.lucene.document.Fieldable field)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.avaje.ebean.config.lucene.IndexDefn
getDefaultField, getFields, getUpdateSinceProperties, initialise, isUpdateSinceSupported
 

Constructor Detail

AbstractIndexDefn

public AbstractIndexDefn()
Method Detail

getAnalyzer

public org.apache.lucene.analysis.Analyzer getAnalyzer()
Description copied from interface: IndexDefn
Return the default Analyzer to use for this index.

Specified by:
getAnalyzer in interface IndexDefn<T>

getMaxBufferedDocs

public int getMaxBufferedDocs()
Description copied from interface: IndexDefn
Return the max buffered documents for this index.

Specified by:
getMaxBufferedDocs in interface IndexDefn<T>

getMaxFieldLength

public org.apache.lucene.index.IndexWriter.MaxFieldLength getMaxFieldLength()
Description copied from interface: IndexDefn
Return the max field length to use for this index.

Specified by:
getMaxFieldLength in interface IndexDefn<T>

getRAMBufferSizeMB

public double getRAMBufferSizeMB()
Description copied from interface: IndexDefn
Return the ram buffer size for this index.

Specified by:
getRAMBufferSizeMB in interface IndexDefn<T>

getTermIndexInterval

public int getTermIndexInterval()
Description copied from interface: IndexDefn
Return the term index interval.

Specified by:
getTermIndexInterval in interface IndexDefn<T>

visitCreatedField

public void visitCreatedField(org.apache.lucene.document.Fieldable field)


Copyright © 2011. All Rights Reserved.