Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
final class: FieldsWriter [javadoc | source]
java.lang.Object
   org.apache.lucene.index.FieldsWriter
Copyright 2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Field Summary
static final  byte FIELD_IS_TOKENIZED     
static final  byte FIELD_IS_BINARY     
static final  byte FIELD_IS_COMPRESSED     
Constructor:
 FieldsWriter(Directory d,
    String segment,
    FieldInfos fn) throws IOException 
 FieldsWriter(IndexOutput fdx,
    IndexOutput fdt,
    FieldInfos fn) throws IOException 
Method from org.apache.lucene.index.FieldsWriter Summary:
addDocument,   addRawDocuments,   close,   flush,   flushDocument,   writeField
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.FieldsWriter Detail:
 final  void addDocument(Document doc) throws IOException 
 final  void addRawDocuments(IndexInput stream,
    int[] lengths,
    int numDocs) throws IOException 
    Bulk write a contiguous series of documents. The lengths array is the length (in bytes) of each raw document. The stream IndexInput is the fieldsStream from which we should bulk-copy all bytes.
 final  void close() throws IOException 
  void flush() throws IOException 
  void flushDocument(int numStoredFields,
    RAMOutputStream buffer) throws IOException 
 final  void writeField(FieldInfo fi,
    Fieldable field) throws IOException