org.hibernate.search.backend.spi
Class LuceneIndexingParameters.ParameterSet

java.lang.Object
  extended by org.hibernate.search.backend.spi.LuceneIndexingParameters.ParameterSet
All Implemented Interfaces:
Serializable
Enclosing class:
LuceneIndexingParameters

public static class LuceneIndexingParameters.ParameterSet
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
LuceneIndexingParameters.ParameterSet(Properties prop)
           
 
Method Summary
 void applyToWriter(org.apache.lucene.index.IndexWriterConfig writerConfig)
          Applies the parameters represented by this to a writer.
 boolean equals(Object obj)
           
 Integer getCurrentValueFor(IndexWriterSetting ws)
           
 org.apache.lucene.index.LogByteSizeMergePolicy getNewMergePolicy()
          Creates a new LogByteSizeMergePolicy as configured by this property set.
 int hashCode()
           
 void setCurrentValueFor(IndexWriterSetting ws, Integer newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LuceneIndexingParameters.ParameterSet

public LuceneIndexingParameters.ParameterSet(Properties prop)
Method Detail

applyToWriter

public void applyToWriter(org.apache.lucene.index.IndexWriterConfig writerConfig)
Applies the parameters represented by this to a writer. Undefined parameters are not set, leaving the lucene default.

Parameters:
writerConfig - the IndexWriter configuration whereto the parameters will be applied.

getNewMergePolicy

public org.apache.lucene.index.LogByteSizeMergePolicy getNewMergePolicy()
Creates a new LogByteSizeMergePolicy as configured by this property set.

Returns:
a new LogByteSizeMergePolicy instance.

getCurrentValueFor

public Integer getCurrentValueFor(IndexWriterSetting ws)

setCurrentValueFor

public void setCurrentValueFor(IndexWriterSetting ws,
                               Integer newValue)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved