|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.store.jdbc.JdbcFileEntrySettings
public class JdbcFileEntrySettings
A file entry level settings. An abstract view of any type of setting that cab be used by the actual file entry handler that uses it.
Holds theFILE_ENTRY_HANDLER_TYPE that defines the type of the
FileEntryHandler that will be created
and initialized with the settings.
Default values for a new instanciated instnce are: MarkDeleteFileEntryHandler for
the FILE_ENTRY_HANDLER_TYPE setting, FetchOnBufferReadJdbcIndexInput for the
INDEX_INPUT_TYPE_SETTING setting, and RAMAndFileJdbcIndexOutput for the
INDEX_OUTPUT_TYPE_SETTING setting.
| Field Summary | |
|---|---|
static String |
FILE_ENTRY_HANDLER_TYPE
The class name of the FileEntryHandler. |
static String |
INDEX_INPUT_TYPE_SETTING
The class name of the IndexInput. |
static String |
INDEX_OUTPUT_TYPE_SETTING
The class name of the IndexOutput. |
| Constructor Summary | |
|---|---|
JdbcFileEntrySettings()
Creates a new file entry settings, and intialize it to default values. |
|
| Method Summary | |
|---|---|
Properties |
getProperties()
Returns the inner java properties. |
String |
getSetting(String setting)
Returns the value match for the given setting. |
String |
getSetting(String setting,
String defaultValue)
Returns the value that matches the given setting. |
boolean |
getSettingAsBoolean(String setting,
boolean defaultValue)
Returns the boolean value that matches the given setting. |
Class |
getSettingAsClass(String setting,
Class defaultValue)
Returns the class value that matches the given setting. |
Class |
getSettingAsClass(String setting,
Class defaultValue,
ClassLoader classLoader)
Returns the class value that matches the given setting. |
float |
getSettingAsFloat(String setting,
float defaultValue)
Returns the float value that matches the given setting. |
int |
getSettingAsInt(String setting,
int defaultValue)
Returns the int value that matches the given setting. |
long |
getSettingAsLong(String setting,
long defaultValue)
Returns the long value that matches the given setting. |
JdbcFileEntrySettings |
setBooleanSetting(String setting,
boolean value)
|
JdbcFileEntrySettings |
setClassSetting(String setting,
Class clazz)
|
JdbcFileEntrySettings |
setFloatSetting(String setting,
float value)
|
JdbcFileEntrySettings |
setIntSetting(String setting,
int value)
|
JdbcFileEntrySettings |
setLongSetting(String setting,
long value)
|
JdbcFileEntrySettings |
setSetting(String setting,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INDEX_INPUT_TYPE_SETTING
IndexInput. Only applies
to FileEntryHandlers that use it.
public static final String INDEX_OUTPUT_TYPE_SETTING
IndexOutput. Only applies
to FileEntryHandlers that use it.
public static final String FILE_ENTRY_HANDLER_TYPE
FileEntryHandler.
| Constructor Detail |
|---|
public JdbcFileEntrySettings()
| Method Detail |
|---|
public Properties getProperties()
public String getSetting(String setting)
null if no
setting is found.
setting - The setting name
null if none is found
public String getSetting(String setting,
String defaultValue)
setting - The setting namedefaultValue - The default value to be used if no setting is found
public float getSettingAsFloat(String setting,
float defaultValue)
setting - The setting namedefaultValue - The default value to be used if no setting is found
public int getSettingAsInt(String setting,
int defaultValue)
setting - The setting namedefaultValue - The default value to be used if no setting is found
public long getSettingAsLong(String setting,
long defaultValue)
setting - The setting namedefaultValue - The default value to be used if no setting is found
public Class getSettingAsClass(String setting,
Class defaultValue)
throws ClassNotFoundException
setting - The setting namedefaultValue - The default value to be used if no setting is found
ClassNotFoundException
public Class getSettingAsClass(String setting,
Class defaultValue,
ClassLoader classLoader)
throws ClassNotFoundException
setting - The setting namedefaultValue - The default value to be used if no setting is foundclassLoader - The class loader to be used to load the class
ClassNotFoundException
public boolean getSettingAsBoolean(String setting,
boolean defaultValue)
setting - The setting namedefaultValue - The default value to be used if no setting is found
public JdbcFileEntrySettings setSetting(String setting,
String value)
public JdbcFileEntrySettings setBooleanSetting(String setting,
boolean value)
public JdbcFileEntrySettings setFloatSetting(String setting,
float value)
public JdbcFileEntrySettings setIntSetting(String setting,
int value)
public JdbcFileEntrySettings setLongSetting(String setting,
long value)
public JdbcFileEntrySettings setClassSetting(String setting,
Class clazz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||