Java Doc for JdbcDirectorySettings.java in  » Search-Engine » compass-2.0 » org » apache » lucene » store » jdbc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » compass 2.0 » org.apache.lucene.store.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.lucene.store.jdbc.JdbcDirectorySettings

JdbcDirectorySettings
public class JdbcDirectorySettings (Code)
General directory level settings.

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 ActualDeleteFileEntryHandler , FetchOnOpenJdbcIndexInput , and RAMJdbcIndexOutput . The file suffix "fnm" uses the FetchOnOpenJdbcIndexInput , and RAMJdbcIndexOutput . The file suffix "del" and "tmp" uses the ActualDeleteFileEntryHandler .
author:
   kimchy



Field Summary
public static  StringDEFAULT_FILE_ENTRY
     The default file entry settings name that are registered under.
final public static  longHOUR
     A simple constant having the millisecond value of an hour.

Constructor Summary
public  JdbcDirectorySettings()
     Creates a new instance of the Jdbc directory settings with it's default values initialized.

Method Summary
public  JdbcFileEntrySettingsgetDefaultFileEntrySettings()
     Returns the default file entry handler settings.
public  longgetDeleteMarkDeletedDelta()
     Returns the delta (in millis) for the delete mark deleted.
public  StringgetDeletedColumnName()
     Returns the deleted column name (defaults to deleted_).
public  MapgetFileEntrySettings()
     Returns the file entries map.
public  JdbcFileEntrySettingsgetFileEntrySettings(String name)
     Returns the file entries according to the name.
public  JdbcFileEntrySettingsgetFileEntrySettingsWithoutDefault(String name)
     Same as JdbcDirectorySettings.getFileEntrySettings(String) , only returns null if no match is found (instead of the default file entry handler settings).
public  StringgetLastModifiedColumnName()
     Returns the last modified column name (defaults to lf_).
public  ClassgetLockClass()
     Returns the lock class that will be used for locking.
public  intgetNameColumnLength()
     Returns the name column length.
public  StringgetNameColumnName()
     Returns the name column name (defaults to name_).
public  intgetQueryTimeout()
     Query timeout applies to Jdbc queries.
public  StringgetSizeColumnName()
     Returns the size column name (default to size_).
public  intgetValueColumnLengthInK()
     Returns the value column length (In K).
public  StringgetValueColumnName()
     Returns the value column name (defaults to value_).
public  voidregisterFileEntrySettings(String name, JdbcFileEntrySettings fileEntrySettings)
     Registers a JdbcFileEntrySettings against the given name.
public  voidsetDeleteMarkDeletedDelta(long deleteMarkDeletedDelta)
     Sets the delta (in millis) for the delete mark deleted.
public  voidsetDeletedColumnName(String deletedColumnName)
     Sets the deleted column name.
public  voidsetLastModifiedColumnName(String lastModifiedColumnName)
     Sets the last modified column name.
public  voidsetLockClass(Class lockClass)
     Sets the lock class that will be used for locking.
public  voidsetNameColumnLength(int nameColumnLength)
     Sets the name column length.
public  voidsetNameColumnName(String nameColumnName)
     Sets the name column name.
public  voidsetQueryTimeout(int queryTimeout)
     Query timeout applies to Jdbc queries.
public  voidsetSizeColumnName(String sizeColumnName)
     Sets the size column name.
public  voidsetValueColumnLengthInK(int valueColumnLengthInK)
     Sets the value coumn length (In K).
public  voidsetValueColumnName(String valueColumnName)
     Sets the value column name.

Field Detail
DEFAULT_FILE_ENTRY
public static String DEFAULT_FILE_ENTRY(Code)
The default file entry settings name that are registered under.



HOUR
final public static long HOUR(Code)
A simple constant having the millisecond value of an hour.




Constructor Detail
JdbcDirectorySettings
public JdbcDirectorySettings()(Code)
Creates a new instance of the Jdbc directory settings with it's default values initialized.




Method Detail
getDefaultFileEntrySettings
public JdbcFileEntrySettings getDefaultFileEntrySettings()(Code)
Returns the default file entry handler settings.



getDeleteMarkDeletedDelta
public long getDeleteMarkDeletedDelta()(Code)
Returns the delta (in millis) for the delete mark deleted. File entries marked as being deleted will be deleted from the system (using org.apache.lucene.store.jdbc.JdbcDirectory.deleteMarkDeleted if: current_time - deletelMarkDeletedDelta < Time File Entry Marked as Deleted.



getDeletedColumnName
public String getDeletedColumnName()(Code)
Returns the deleted column name (defaults to deleted_).



getFileEntrySettings
public Map getFileEntrySettings()(Code)
Returns the file entries map. Please don't change it during runtime.



getFileEntrySettings
public JdbcFileEntrySettings getFileEntrySettings(String name)(Code)
Returns the file entries according to the name. If a direct match is found, it's registered 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.



getFileEntrySettingsWithoutDefault
public JdbcFileEntrySettings getFileEntrySettingsWithoutDefault(String name)(Code)
Same as JdbcDirectorySettings.getFileEntrySettings(String) , only returns null if no match is found (instead of the default file entry handler settings).



getLastModifiedColumnName
public String getLastModifiedColumnName()(Code)
Returns the last modified column name (defaults to lf_).



getLockClass
public Class getLockClass()(Code)
Returns the lock class that will be used for locking. Defaults to PhantomReadLock .



getNameColumnLength
public int getNameColumnLength()(Code)
Returns the name column length.



getNameColumnName
public String getNameColumnName()(Code)
Returns the name column name (defaults to name_).



getQueryTimeout
public int getQueryTimeout()(Code)
Query timeout applies to Jdbc queries.



getSizeColumnName
public String getSizeColumnName()(Code)
Returns the size column name (default to size_).



getValueColumnLengthInK
public int getValueColumnLengthInK()(Code)
Returns the value column length (In K).



getValueColumnName
public String getValueColumnName()(Code)
Returns the value column name (defaults to value_).



registerFileEntrySettings
public void registerFileEntrySettings(String name, JdbcFileEntrySettings fileEntrySettings)(Code)
Registers a JdbcFileEntrySettings against the given name. The name can be the full name of the file, or it's 3 charecters suffix.



setDeleteMarkDeletedDelta
public void setDeleteMarkDeletedDelta(long deleteMarkDeletedDelta)(Code)
Sets the delta (in millis) for the delete mark deleted. File entries marked as being deleted will be deleted from the system (using org.apache.lucene.store.jdbc.JdbcDirectory.deleteMarkDeleted if: current_time - deletelMarkDeletedDelta < Time File Entry Marked as Deleted.



setDeletedColumnName
public void setDeletedColumnName(String deletedColumnName)(Code)
Sets the deleted column name.



setLastModifiedColumnName
public void setLastModifiedColumnName(String lastModifiedColumnName)(Code)
Sets the last modified column name.



setLockClass
public void setLockClass(Class lockClass)(Code)
Sets the lock class that will be used for locking. Defaults to PhantomReadLock .



setNameColumnLength
public void setNameColumnLength(int nameColumnLength)(Code)
Sets the name column length.



setNameColumnName
public void setNameColumnName(String nameColumnName)(Code)
Sets the name column name.



setQueryTimeout
public void setQueryTimeout(int queryTimeout)(Code)
Query timeout applies to Jdbc queries.



setSizeColumnName
public void setSizeColumnName(String sizeColumnName)(Code)
Sets the size column name.



setValueColumnLengthInK
public void setValueColumnLengthInK(int valueColumnLengthInK)(Code)
Sets the value coumn length (In K).



setValueColumnName
public void setValueColumnName(String valueColumnName)(Code)
Sets the value column name.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.