Java Doc for SegmentReader.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.IndexReader
      org.apache.lucene.index.DirectoryIndexReader
         org.apache.lucene.index.SegmentReader

All known Subclasses:   org.apache.lucene.index.GCJSegmentReader,
SegmentReader
class SegmentReader extends DirectoryIndexReader (Code)

version:
   $Id: SegmentReader.java 603061 2007-12-10 21:49:41Z gsingers $


Field Summary
 CompoundFileReadercfsReader
    
 BitVectordeletedDocs
    
 FieldInfosfieldInfos
    
 IndexInputfreqStream
    
 Mapnorms
    
 IndexInputproxStream
    
 CompoundFileReaderstoreCFSReader
    
 ThreadLocaltermVectorsLocal
    
 TermVectorsReadertermVectorsReaderOrig
    
 TermInfosReadertis
    


Method Summary
protected  voidcommitChanges()
    
static  byte[]createFakeNorms(int size)
    
protected synchronized  voiddecRef()
    
protected  voiddoClose()
    
protected  voiddoDelete(int docNum)
    
protected synchronized  DirectoryIndexReaderdoReopen(SegmentInfos infos)
    
protected  voiddoSetNorm(int doc, String field, byte value)
    
protected  voiddoUndeleteAll()
    
public  intdocFreq(Term t)
    
public synchronized  Documentdocument(int n, FieldSelector fieldSelector)
    
 FieldInfosfieldInfos()
    
 Vectorfiles()
    
public static  SegmentReaderget(SegmentInfo si)
    
static  SegmentReaderget(SegmentInfo si, boolean doOpenStores)
    
public static  SegmentReaderget(SegmentInfo si, int readBufferSize)
    
static  SegmentReaderget(SegmentInfo si, int readBufferSize, boolean doOpenStores)
    
public static  SegmentReaderget(SegmentInfos sis, SegmentInfo si, boolean closeDir)
    
public static  SegmentReaderget(Directory dir, SegmentInfo si, SegmentInfos sis, boolean closeDir, boolean ownDir, int readBufferSize)
    
public static  SegmentReaderget(Directory dir, SegmentInfo si, SegmentInfos sis, boolean closeDir, boolean ownDir, int readBufferSize, boolean doOpenStores)
    
 FieldInfosgetFieldInfos()
    
public  CollectiongetFieldNames(IndexReader.FieldOption fieldOption)
    
 FieldsReadergetFieldsReader()
    
protected synchronized  byte[]getNorms(String field)
    
 SegmentInfogetSegmentInfo()
     Return the SegmentInfo of the segment this reader is reading.
 StringgetSegmentName()
     Return the name of the segment this reader is reading.
public  TermFreqVectorgetTermFreqVector(int docNumber, String field)
     Return a term frequency vector for the specified document and field.
public  voidgetTermFreqVector(int docNumber, String field, TermVectorMapper mapper)
    
public  voidgetTermFreqVector(int docNumber, TermVectorMapper mapper)
    
public  TermFreqVector[]getTermFreqVectors(int docNumber)
     Return an array of term frequency vectors for the specified document.
public  intgetTermInfosIndexDivisor()
    
static  booleanhasDeletions(SegmentInfo si)
    
public  booleanhasDeletions()
    
public synchronized  booleanhasNorms(String field)
    
static  booleanhasSeparateNorms(SegmentInfo si)
    
protected synchronized  voidincRef()
    
public synchronized  booleanisDeleted(int n)
    
public  intmaxDoc()
    
public synchronized  byte[]norms(String field)
    
public synchronized  voidnorms(String field, byte[] bytes, int offset)
     Read norms into a pre-allocated array.
 booleannormsClosed()
    
 booleannormsClosed(String field)
    
public  intnumDocs()
    
synchronized  SegmentReaderreopenSegment(SegmentInfo si)
    
 voidrollbackCommit()
    
 voidsetSegmentInfo(SegmentInfo info)
    
public  voidsetTermInfosIndexDivisor(int indexDivisor)
    
 voidstartCommit()
    
public  TermDocstermDocs()
    
public  TermPositionstermPositions()
    
public  TermEnumterms()
    
public  TermEnumterms(Term t)
    
static  booleanusesCompoundFile(SegmentInfo si)
    

Field Detail
cfsReader
CompoundFileReader cfsReader(Code)



deletedDocs
BitVector deletedDocs(Code)



fieldInfos
FieldInfos fieldInfos(Code)



freqStream
IndexInput freqStream(Code)



norms
Map norms(Code)



proxStream
IndexInput proxStream(Code)



storeCFSReader
CompoundFileReader storeCFSReader(Code)



termVectorsLocal
ThreadLocal termVectorsLocal(Code)



termVectorsReaderOrig
TermVectorsReader termVectorsReaderOrig(Code)



tis
TermInfosReader tis(Code)





Method Detail
commitChanges
protected void commitChanges() throws IOException(Code)



createFakeNorms
static byte[] createFakeNorms(int size)(Code)



decRef
protected synchronized void decRef() throws IOException(Code)



doClose
protected void doClose() throws IOException(Code)



doDelete
protected void doDelete(int docNum)(Code)



doReopen
protected synchronized DirectoryIndexReader doReopen(SegmentInfos infos) throws CorruptIndexException, IOException(Code)



doSetNorm
protected void doSetNorm(int doc, String field, byte value) throws IOException(Code)



doUndeleteAll
protected void doUndeleteAll()(Code)



docFreq
public int docFreq(Term t) throws IOException(Code)



document
public synchronized Document document(int n, FieldSelector fieldSelector) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



fieldInfos
FieldInfos fieldInfos()(Code)
Returns the field infos of this segment



files
Vector files() throws IOException(Code)



get
public static SegmentReader get(SegmentInfo si) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



get
static SegmentReader get(SegmentInfo si, boolean doOpenStores) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



get
public static SegmentReader get(SegmentInfo si, int readBufferSize) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



get
static SegmentReader get(SegmentInfo si, int readBufferSize, boolean doOpenStores) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



get
public static SegmentReader get(SegmentInfos sis, SegmentInfo si, boolean closeDir) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



get
public static SegmentReader get(Directory dir, SegmentInfo si, SegmentInfos sis, boolean closeDir, boolean ownDir, int readBufferSize) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



get
public static SegmentReader get(Directory dir, SegmentInfo si, SegmentInfos sis, boolean closeDir, boolean ownDir, int readBufferSize, boolean doOpenStores) throws CorruptIndexException, IOException(Code)

throws:
  CorruptIndexException - if the index is corrupt
throws:
  IOException - if there is a low-level IO error



getFieldInfos
FieldInfos getFieldInfos()(Code)



getFieldNames
public Collection getFieldNames(IndexReader.FieldOption fieldOption)(Code)

See Also:   IndexReader.getFieldNames(IndexReader.FieldOption fldOption)



getFieldsReader
FieldsReader getFieldsReader()(Code)



getNorms
protected synchronized byte[] getNorms(String field) throws IOException(Code)



getSegmentInfo
SegmentInfo getSegmentInfo()(Code)
Return the SegmentInfo of the segment this reader is reading.



getSegmentName
String getSegmentName()(Code)
Return the name of the segment this reader is reading.



getTermFreqVector
public TermFreqVector getTermFreqVector(int docNumber, String field) throws IOException(Code)
Return a term frequency vector for the specified document and field. The vector returned contains term numbers and frequencies for all terms in the specified field of this document, if the field had storeTermVector flag set. If the flag was not set, the method returns null.
throws:
  IOException -



getTermFreqVector
public void getTermFreqVector(int docNumber, String field, TermVectorMapper mapper) throws IOException(Code)



getTermFreqVector
public void getTermFreqVector(int docNumber, TermVectorMapper mapper) throws IOException(Code)



getTermFreqVectors
public TermFreqVector[] getTermFreqVectors(int docNumber) throws IOException(Code)
Return an array of term frequency vectors for the specified document. The array contains a vector for each vectorized field in the document. Each vector vector contains term numbers and frequencies for all terms in a given vectorized field. If no such fields existed, the method returns null.
throws:
  IOException -



getTermInfosIndexDivisor
public int getTermInfosIndexDivisor()(Code)



hasDeletions
static boolean hasDeletions(SegmentInfo si) throws IOException(Code)



hasDeletions
public boolean hasDeletions()(Code)



hasNorms
public synchronized boolean hasNorms(String field)(Code)



hasSeparateNorms
static boolean hasSeparateNorms(SegmentInfo si) throws IOException(Code)



incRef
protected synchronized void incRef()(Code)
Increments the RC of this reader, as well as of all norms this reader is using



isDeleted
public synchronized boolean isDeleted(int n)(Code)



maxDoc
public int maxDoc()(Code)



norms
public synchronized byte[] norms(String field) throws IOException(Code)



norms
public synchronized void norms(String field, byte[] bytes, int offset) throws IOException(Code)
Read norms into a pre-allocated array.



normsClosed
boolean normsClosed()(Code)



normsClosed
boolean normsClosed(String field)(Code)



numDocs
public int numDocs()(Code)



reopenSegment
synchronized SegmentReader reopenSegment(SegmentInfo si) throws CorruptIndexException, IOException(Code)



rollbackCommit
void rollbackCommit()(Code)



setSegmentInfo
void setSegmentInfo(SegmentInfo info)(Code)



setTermInfosIndexDivisor
public void setTermInfosIndexDivisor(int indexDivisor) throws IllegalStateException(Code)



startCommit
void startCommit()(Code)



termDocs
public TermDocs termDocs() throws IOException(Code)



termPositions
public TermPositions termPositions() throws IOException(Code)



terms
public TermEnum terms()(Code)



terms
public TermEnum terms(Term t) throws IOException(Code)



usesCompoundFile
static boolean usesCompoundFile(SegmentInfo si) throws IOException(Code)



Fields inherited from org.apache.lucene.index.DirectoryIndexReader
protected boolean closeDirectory(Code)(Java Doc)
protected Directory directory(Code)(Java Doc)

Methods inherited from org.apache.lucene.index.DirectoryIndexReader
protected void acquireWriteLock() throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException(Code)(Java Doc)
abstract protected void commitChanges() throws IOException(Code)(Java Doc)
public Directory directory()(Code)(Java Doc)
protected void doClose() throws IOException(Code)(Java Doc)
protected void doCommit() throws IOException(Code)(Java Doc)
abstract protected DirectoryIndexReader doReopen(SegmentInfos infos) throws CorruptIndexException, IOException(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
public long getVersion()(Code)(Java Doc)
void init(Directory directory, SegmentInfos segmentInfos, boolean closeDirectory)(Code)(Java Doc)
public boolean isCurrent() throws CorruptIndexException, IOException(Code)(Java Doc)
public boolean isOptimized()(Code)(Java Doc)
static DirectoryIndexReader open(Directory directory, boolean closeDirectory, IndexDeletionPolicy deletionPolicy) throws CorruptIndexException, IOException(Code)(Java Doc)
final public synchronized IndexReader reopen() throws CorruptIndexException, IOException(Code)(Java Doc)
void rollbackCommit()(Code)(Java Doc)
public void setDeletionPolicy(IndexDeletionPolicy deletionPolicy)(Code)(Java Doc)
void startCommit()(Code)(Java Doc)

Fields inherited from org.apache.lucene.index.IndexReader
protected boolean hasChanges(Code)(Java Doc)

Methods inherited from org.apache.lucene.index.IndexReader
protected synchronized void acquireWriteLock() throws IOException(Code)(Java Doc)
final public synchronized void close() throws IOException(Code)(Java Doc)
final protected synchronized void commit() throws IOException(Code)(Java Doc)
protected synchronized void decRef() throws IOException(Code)(Java Doc)
final public synchronized void deleteDocument(int docNum) throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException(Code)(Java Doc)
final public int deleteDocuments(Term term) throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException(Code)(Java Doc)
public Directory directory()(Code)(Java Doc)
abstract protected void doClose() throws IOException(Code)(Java Doc)
abstract protected void doCommit() throws IOException(Code)(Java Doc)
abstract protected void doDelete(int docNum) throws CorruptIndexException, IOException(Code)(Java Doc)
abstract protected void doSetNorm(int doc, String field, byte value) throws CorruptIndexException, IOException(Code)(Java Doc)
abstract protected void doUndeleteAll() throws CorruptIndexException, IOException(Code)(Java Doc)
abstract public int docFreq(Term t) throws IOException(Code)(Java Doc)
public Document document(int n) throws CorruptIndexException, IOException(Code)(Java Doc)
abstract public Document document(int n, FieldSelector fieldSelector) throws CorruptIndexException, IOException(Code)(Java Doc)
final protected void ensureOpen() throws AlreadyClosedException(Code)(Java Doc)
final public synchronized void flush() throws IOException(Code)(Java Doc)
public static long getCurrentVersion(String directory) throws CorruptIndexException, IOException(Code)(Java Doc)
public static long getCurrentVersion(File directory) throws CorruptIndexException, IOException(Code)(Java Doc)
public static long getCurrentVersion(Directory directory) throws CorruptIndexException, IOException(Code)(Java Doc)
abstract public Collection getFieldNames(FieldOption fldOption)(Code)(Java Doc)
synchronized int getRefCount()(Code)(Java Doc)
abstract public TermFreqVector getTermFreqVector(int docNumber, String field) throws IOException(Code)(Java Doc)
abstract public void getTermFreqVector(int docNumber, String field, TermVectorMapper mapper) throws IOException(Code)(Java Doc)
abstract public void getTermFreqVector(int docNumber, TermVectorMapper mapper) throws IOException(Code)(Java Doc)
abstract public TermFreqVector[] getTermFreqVectors(int docNumber) throws IOException(Code)(Java Doc)
public int getTermInfosIndexDivisor()(Code)(Java Doc)
public long getVersion()(Code)(Java Doc)
abstract public boolean hasDeletions()(Code)(Java Doc)
public boolean hasNorms(String field) throws IOException(Code)(Java Doc)
protected synchronized void incRef()(Code)(Java Doc)
public static boolean indexExists(String directory)(Code)(Java Doc)
public static boolean indexExists(File directory)(Code)(Java Doc)
public static boolean indexExists(Directory directory) throws IOException(Code)(Java Doc)
public boolean isCurrent() throws CorruptIndexException, IOException(Code)(Java Doc)
abstract public boolean isDeleted(int n)(Code)(Java Doc)
public static boolean isLocked(Directory directory) throws IOException(Code)(Java Doc)
public static boolean isLocked(String directory) throws IOException(Code)(Java Doc)
public boolean isOptimized()(Code)(Java Doc)
public static long lastModified(String directory) throws CorruptIndexException, IOException(Code)(Java Doc)
public static long lastModified(File fileDirectory) throws CorruptIndexException, IOException(Code)(Java Doc)
public static long lastModified(Directory directory2) throws CorruptIndexException, IOException(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
abstract public int maxDoc()(Code)(Java Doc)
abstract public byte[] norms(String field) throws IOException(Code)(Java Doc)
abstract public void norms(String field, byte[] bytes, int offset) throws IOException(Code)(Java Doc)
abstract public int numDocs()(Code)(Java Doc)
public static IndexReader open(String path) throws CorruptIndexException, IOException(Code)(Java Doc)
public static IndexReader open(File path) throws CorruptIndexException, IOException(Code)(Java Doc)
public static IndexReader open(Directory directory) throws CorruptIndexException, IOException(Code)(Java Doc)
public static IndexReader open(Directory directory, IndexDeletionPolicy deletionPolicy) throws CorruptIndexException, IOException(Code)(Java Doc)
public synchronized IndexReader reopen() throws CorruptIndexException, IOException(Code)(Java Doc)
final public synchronized void setNorm(int doc, String field, byte value) throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException(Code)(Java Doc)
public void setNorm(int doc, String field, float value) throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException(Code)(Java Doc)
public void setTermInfosIndexDivisor(int indexDivisor) throws IllegalStateException(Code)(Java Doc)
public TermDocs termDocs(Term term) throws IOException(Code)(Java Doc)
abstract public TermDocs termDocs() throws IOException(Code)(Java Doc)
public TermPositions termPositions(Term term) throws IOException(Code)(Java Doc)
abstract public TermPositions termPositions() throws IOException(Code)(Java Doc)
abstract public TermEnum terms() throws IOException(Code)(Java Doc)
abstract public TermEnum terms(Term t) throws IOException(Code)(Java Doc)
final public synchronized void undeleteAll() throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException(Code)(Java Doc)
public static void unlock(Directory directory) throws IOException(Code)(Java Doc)

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.