Java Doc for InternalIndex.java in  » Search-Engine » Jofti » com » jofti » core » 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 » Jofti » com.jofti.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jofti.core.InternalIndex

All known Subclasses:   com.jofti.tree.TreeIndex,
InternalIndex
public interface InternalIndex (Code)
The Internal IndexCache is the core interface that IndexCache implmentations must implement. This allows Adapters and the IndexCache Manager to interact with the IndexCache implementation.


author:
   xenephon (xenephon@jofti.com)





Method Summary
public  booleancontains(Object key)
     Returns whether the index contains the key.
public  MapgetAttributesByKey(Object key)
     Returns a Map of attribute values that the index has for the key from the index.
public  MapgetEntries(Object key)
     Returns the keys that are stored under the entry.
public  ClassIntrospectorgetIntrospector()
    
public  longgetKeyNumber()
    
public  ParserManagergetParserManager()
     Returns the parser manager configured in this index.
public  voidinsert(Object key, Object value)
     Puts an object into the underlying index instance and indexes the object according to the class definitions in the index config file.
public  voidinsertEntry(Object key, Object value)
    
public  Mapquery(IndexQuery query)
     This queries the index and retrieves a map of matching elements (if any).
public  voidremove(Object key, Object value)
     Deletes an object from the index.
public  voidremoveAll()
    
public  voidremoveByKey(Object key)
     Deletes all entries for the key from the index.



Method Detail
contains
public boolean contains(Object key) throws JoftiException(Code)
Returns whether the index contains the key.


Parameters:
  key - -the key to check
throws:
  JoftiException - - A wrapper for any cache specific exceptions or exceptions generated by the index.




getAttributesByKey
public Map getAttributesByKey(Object key) throws JoftiException(Code)
Returns a Map of attribute values that the index has for the key from the index.


Parameters:
  key - -the key to retrieve the cached object
throws:
  JoftiException - - A wrapper for any cache specific exceptions or exceptions generated by the index.




getEntries
public Map getEntries(Object key) throws JoftiException(Code)
Returns the keys that are stored under the entry.


Parameters:
  key - -the object to check
throws:
  JoftiException - - A wrapper for any cache specific exceptions or exceptions generated by the index.




getIntrospector
public ClassIntrospector getIntrospector()(Code)



getKeyNumber
public long getKeyNumber()(Code)



getParserManager
public ParserManager getParserManager()(Code)
Returns the parser manager configured in this index. ParserManager



insert
public void insert(Object key, Object value) throws IllegalArgumentException, JoftiException(Code)
Puts an object into the underlying index instance and indexes the object according to the class definitions in the index config file. Some indexes may only accept certain types of object.


Parameters:
  key - value to use as key in the index
Parameters:
  value - value to put into cache and to be indexed
throws:
  JoftiException - thrown as a wrapper exception that contains any index specific exceptions.




insertEntry
public void insertEntry(Object key, Object value) throws IllegalArgumentException, JoftiException(Code)



query
public Map query(IndexQuery query) throws JoftiException(Code)
This queries the index and retrieves a map of matching elements (if any). The map contains key/value pairs and the result is ordered by the attribute being searched on (if a single attribute is used in the query). The ordering is preserved in the iteration as it is a @seejava.util.LinkedHashMap.

If you are using a NameSpacedIndex the keys returned in this map are of type @see NameSpaceKey.


Parameters:
  query - - the type of query to perform against the index and cache.

Map a map of the results

throws:
  JoftiException - a wrapper exception for errors in the query.




remove
public void remove(Object key, Object value) throws IllegalArgumentException, JoftiException(Code)
Deletes an object from the index. Attempting to remove a non-existent, or expired object will not generate an exception.


Parameters:
  key - -the key to retrieve the cached object
Parameters:
  value - - the object to be removed
throws:
  JoftiException - - A wrapper for any cache specific exceptions or exceptions generated by the index.




removeAll
public void removeAll() throws JoftiException(Code)
This will remove all the values in the cache and dump the current index.


throws:
  JoftiException -




removeByKey
public void removeByKey(Object key) throws JoftiException(Code)
Deletes all entries for the key from the index. Attempting to remove a non-existent, or expired object will not generate an exception.


Parameters:
  key - -the key to retrieve the cached object
throws:
  JoftiException - - A wrapper for any cache specific exceptions or exceptions generated by the index.




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