Class SimpleTextStoredFieldsWriter
java.lang.Object
org.apache.lucene.codecs.StoredFieldsWriter
org.apache.lucene.codecs.simpletext.SimpleTextStoredFieldsWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Accountable
Writes plain-text stored fields.
FOR RECREATIONAL USE ONLY
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.codecs.StoredFieldsWriter
StoredFieldsWriter.MergeVisitor
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
ConstructorDescriptionSimpleTextStoredFieldsWriter
(Directory directory, String segment, IOContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
finish
(int numDocs) long
void
void
writeField
(FieldInfo info, IndexableField field) Methods inherited from class org.apache.lucene.codecs.StoredFieldsWriter
finishDocument, merge
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
SimpleTextStoredFieldsWriter
public SimpleTextStoredFieldsWriter(Directory directory, String segment, IOContext context) throws IOException - Throws:
IOException
-
-
Method Details
-
startDocument
- Specified by:
startDocument
in classStoredFieldsWriter
- Throws:
IOException
-
writeField
- Specified by:
writeField
in classStoredFieldsWriter
- Throws:
IOException
-
finish
- Specified by:
finish
in classStoredFieldsWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classStoredFieldsWriter
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
-