Java Doc for FieldInfos.java in  » Net » lucene-connector » org » apache » lucene » index » 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 » Net » lucene connector » org.apache.lucene.index 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.lucene.index.FieldInfos

FieldInfos
final class FieldInfos (Code)
Access to the Fieldable Info file that describes document fields and whether or not they are indexed. Each segment has a separate Fieldable Info file. Objects of this class are thread-safe for multiple readers, but only one thread can be adding documents at a time, with no other reader or writer threads accessing this object.


Field Summary
final static  byteIS_INDEXED
    
final static  byteOMIT_NORMS
    
final static  byteSTORE_OFFSET_WITH_TERMVECTOR
    
final static  byteSTORE_PAYLOADS
    
final static  byteSTORE_POSITIONS_WITH_TERMVECTOR
    
final static  byteSTORE_TERMVECTOR
    

Constructor Summary
 FieldInfos()
    
 FieldInfos(Directory d, String name)
    

Method Summary
public  voidadd(Document doc)
     Adds field info for a Document.
public  voidadd(Collection names, boolean isIndexed)
     Assumes the fields are not storing term vectors.
public  voidadd(String name, boolean isIndexed)
     Calls 5 parameter add with false for all TermVector parameters.
public  voidadd(String name, boolean isIndexed, boolean storeTermVector)
     Calls 5 parameter add with false for term vector positions and offsets.
public  voidadd(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector)
     If the field is not yet known, adds it.
public  voidadd(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean omitNorms)
     If the field is not yet known, adds it.
public  FieldInfoadd(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean omitNorms, boolean storePayloads)
     If the field is not yet known, adds it.
public  voidaddIndexed(Collection names, boolean storeTermVectors, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector)
     Add fields that are indexed.
public  Objectclone()
     Returns a deep clone of this FieldInfos instance.
public  FieldInfofieldInfo(String fieldName)
    
public  FieldInfofieldInfo(int fieldNumber)
     Return the fieldinfo object referenced by the fieldNumber.
public  StringfieldName(int fieldNumber)
     Return the fieldName identified by its number.
public  intfieldNumber(String fieldName)
    
public  booleanhasVectors()
    
public  intsize()
    
public  voidwrite(Directory d, String name)
    
public  voidwrite(IndexOutput output)
    

Field Detail
IS_INDEXED
final static byte IS_INDEXED(Code)



OMIT_NORMS
final static byte OMIT_NORMS(Code)



STORE_OFFSET_WITH_TERMVECTOR
final static byte STORE_OFFSET_WITH_TERMVECTOR(Code)



STORE_PAYLOADS
final static byte STORE_PAYLOADS(Code)



STORE_POSITIONS_WITH_TERMVECTOR
final static byte STORE_POSITIONS_WITH_TERMVECTOR(Code)



STORE_TERMVECTOR
final static byte STORE_TERMVECTOR(Code)




Constructor Detail
FieldInfos
FieldInfos()(Code)



FieldInfos
FieldInfos(Directory d, String name) throws IOException(Code)
Construct a FieldInfos object using the directory and the name of the file IndexInput
Parameters:
  d - The directory to open the IndexInput from
Parameters:
  name - The name of the file to open the IndexInput from in the Directory
throws:
  IOException -




Method Detail
add
public void add(Document doc)(Code)
Adds field info for a Document.



add
public void add(Collection names, boolean isIndexed)(Code)
Assumes the fields are not storing term vectors.
Parameters:
  names - The names of the fields
Parameters:
  isIndexed - Whether the fields are indexed or not
See Also:   FieldInfos.add(String,boolean)



add
public void add(String name, boolean isIndexed)(Code)
Calls 5 parameter add with false for all TermVector parameters.
Parameters:
  name - The name of the Fieldable
Parameters:
  isIndexed - true if the field is indexed
See Also:   FieldInfos.add(String,boolean,boolean,boolean,boolean)



add
public void add(String name, boolean isIndexed, boolean storeTermVector)(Code)
Calls 5 parameter add with false for term vector positions and offsets.
Parameters:
  name - The name of the field
Parameters:
  isIndexed - true if the field is indexed
Parameters:
  storeTermVector - true if the term vector should be stored



add
public void add(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector)(Code)
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.
Parameters:
  name - The name of the field
Parameters:
  isIndexed - true if the field is indexed
Parameters:
  storeTermVector - true if the term vector should be stored
Parameters:
  storePositionWithTermVector - true if the term vector with positions should be stored
Parameters:
  storeOffsetWithTermVector - true if the term vector with offsets should be stored



add
public void add(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean omitNorms)(Code)
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.
Parameters:
  name - The name of the field
Parameters:
  isIndexed - true if the field is indexed
Parameters:
  storeTermVector - true if the term vector should be stored
Parameters:
  storePositionWithTermVector - true if the term vector with positions should be stored
Parameters:
  storeOffsetWithTermVector - true if the term vector with offsets should be stored
Parameters:
  omitNorms - true if the norms for the indexed field should be omitted



add
public FieldInfo add(String name, boolean isIndexed, boolean storeTermVector, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean omitNorms, boolean storePayloads)(Code)
If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.
Parameters:
  name - The name of the field
Parameters:
  isIndexed - true if the field is indexed
Parameters:
  storeTermVector - true if the term vector should be stored
Parameters:
  storePositionWithTermVector - true if the term vector with positions should be stored
Parameters:
  storeOffsetWithTermVector - true if the term vector with offsets should be stored
Parameters:
  omitNorms - true if the norms for the indexed field should be omitted
Parameters:
  storePayloads - true if payloads should be stored for this field



addIndexed
public void addIndexed(Collection names, boolean storeTermVectors, boolean storePositionWithTermVector, boolean storeOffsetWithTermVector)(Code)
Add fields that are indexed. Whether they have termvectors has to be specified.
Parameters:
  names - The names of the fields
Parameters:
  storeTermVectors - Whether the fields store term vectors or not
Parameters:
  storePositionWithTermVector - treu if positions should be stored.
Parameters:
  storeOffsetWithTermVector - true if offsets should be stored



clone
public Object clone()(Code)
Returns a deep clone of this FieldInfos instance.



fieldInfo
public FieldInfo fieldInfo(String fieldName)(Code)



fieldInfo
public FieldInfo fieldInfo(int fieldNumber)(Code)
Return the fieldinfo object referenced by the fieldNumber.
Parameters:
  fieldNumber - the FieldInfo object or null when the given fieldNumberdoesn't exist.



fieldName
public String fieldName(int fieldNumber)(Code)
Return the fieldName identified by its number.
Parameters:
  fieldNumber - the fieldName or an empty string when the fieldwith the given number doesn't exist.



fieldNumber
public int fieldNumber(String fieldName)(Code)



hasVectors
public boolean hasVectors()(Code)



size
public int size()(Code)



write
public void write(Directory d, String name) throws IOException(Code)



write
public void write(IndexOutput output) throws IOException(Code)



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.