public class JdbcDirectorySettings extends Object
The settings also holds JdbcFileEntrySettings
, that can be registered with
the directory settings. Note, that when registering them, they are registered under
both the complete name and the 3 charecters name suffix.
When creating the settings, it already holds sensible settings, they are:
The default JdbcFileEntrySettings
uses the file entry settings defaults.
The "deletable", ""deleteable.new", and "deletable.new" uses the NoOpFileEntryHandler
.
The "segments" and "segments.new" uses the OracleFileEntryHandler
, FetchOnOpenJdbcIndexInput
,
and RAMJdbcIndexOutput
.
The file suffix "fnm" uses the FetchOnOpenJdbcIndexInput
, and RAMJdbcIndexOutput
.
The file suffix "del" and "tmp" uses the OracleFileEntryHandler
.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FILE_ENTRY
The default file entry settings name that are registered under.
|
static long |
HOUR
A simple constant having the millisecond value of an hour.
|
Constructor and Description |
---|
JdbcDirectorySettings()
Creates a new instance of the Jdbc directory settings with it's default values initialized.
|
Modifier and Type | Method and Description |
---|---|
JdbcFileEntrySettings |
getDefaultFileEntrySettings()
Returns the default file entry handler settings.
|
String |
getDeletedColumnName()
Returns the deleted column name (defaults to deleted_).
|
long |
getDeleteMarkDeletedDelta()
Returns the delta (in millis) for the delete mark deleted.
|
Map |
getFileEntrySettings()
Returns the file entries map.
|
JdbcFileEntrySettings |
getFileEntrySettings(String name)
Returns the file entries according to the name.
|
JdbcFileEntrySettings |
getFileEntrySettingsWithoutDefault(String name)
Same as
getFileEntrySettings(String) , only returns null if no match is found
(instead of the default file entry handler settings). |
String |
getLastModifiedColumnName()
Returns the last modified column name (defaults to lf_).
|
Class |
getLockClass()
Returns the lock class that will be used for locking.
|
int |
getNameColumnLength()
Returns the name column length.
|
String |
getNameColumnName()
Returns the name column name (defaults to name_).
|
int |
getQueryTimeout()
Query timeout applies to Jdbc queries.
|
String |
getSizeColumnName()
Returns the size column name (default to size_).
|
int |
getValueColumnLengthInK()
Returns the value column length (In K).
|
String |
getValueColumnName()
Returns the value column name (defaults to value_).
|
void |
registerFileEntrySettings(String name,
JdbcFileEntrySettings fileEntrySettings)
Registers a
JdbcFileEntrySettings against the given name. |
void |
setDeletedColumnName(String deletedColumnName)
Sets the deleted column name.
|
void |
setDeleteMarkDeletedDelta(long deleteMarkDeletedDelta)
Sets the delta (in millis) for the delete mark deleted.
|
void |
setLastModifiedColumnName(String lastModifiedColumnName)
Sets the last modified column name.
|
void |
setLockClass(Class lockClass)
Sets the lock class that will be used for locking.
|
void |
setNameColumnLength(int nameColumnLength)
Sets the name column length.
|
void |
setNameColumnName(String nameColumnName)
Sets the name column name.
|
void |
setQueryTimeout(int queryTimeout)
Query timeout applies to Jdbc queries.
|
void |
setSizeColumnName(String sizeColumnName)
Sets the size column name.
|
void |
setValueColumnLengthInK(int valueColumnLengthInK)
Sets the value coumn length (In K).
|
void |
setValueColumnName(String valueColumnName)
Sets the value column name.
|
public static String DEFAULT_FILE_ENTRY
public static final long HOUR
public JdbcDirectorySettings()
public JdbcFileEntrySettings getDefaultFileEntrySettings()
public String getDeletedColumnName()
public long getDeleteMarkDeletedDelta()
public Map getFileEntrySettings()
public JdbcFileEntrySettings getFileEntrySettings(String name)
JdbcFileEntrySettings
is returned. If one is registered
against the last 3 charecters, then it is returned. If none is found, the default file entry
handler is returned.public JdbcFileEntrySettings getFileEntrySettingsWithoutDefault(String name)
getFileEntrySettings(String)
, only returns null
if no match is found
(instead of the default file entry handler settings).public String getLastModifiedColumnName()
public Class getLockClass()
public int getNameColumnLength()
public String getNameColumnName()
public int getQueryTimeout()
public String getSizeColumnName()
public int getValueColumnLengthInK()
public String getValueColumnName()
public void registerFileEntrySettings(String name, JdbcFileEntrySettings fileEntrySettings)
JdbcFileEntrySettings
against the given name.
The name can be the full name of the file, or it's 3 charecters suffix.public void setDeletedColumnName(String deletedColumnName)
public void setDeleteMarkDeletedDelta(long deleteMarkDeletedDelta)
public void setLastModifiedColumnName(String lastModifiedColumnName)
public void setLockClass(Class lockClass)
public void setNameColumnLength(int nameColumnLength)
public void setNameColumnName(String nameColumnName)
public void setQueryTimeout(int queryTimeout)
public void setSizeColumnName(String sizeColumnName)
public void setValueColumnLengthInK(int valueColumnLengthInK)
public void setValueColumnName(String valueColumnName)
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.