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
ConstructorsConstructorDescriptionSimpleTextStoredFieldsWriter(Directory directory, String segment, IOContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfinish(int numDocs) longvoidvoidwriteField(FieldInfo info, double value) voidwriteField(FieldInfo info, float value) voidwriteField(FieldInfo info, int value) voidwriteField(FieldInfo info, long value) voidwriteField(FieldInfo info, String value) voidwriteField(FieldInfo info, BytesRef value) Methods inherited from class org.apache.lucene.codecs.StoredFieldsWriter
finishDocument, merge, writeFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startDocumentin classStoredFieldsWriter- Throws:
IOException
-
writeField
- Specified by:
writeFieldin classStoredFieldsWriter- Throws:
IOException
-
writeField
- Specified by:
writeFieldin classStoredFieldsWriter- Throws:
IOException
-
writeField
- Specified by:
writeFieldin classStoredFieldsWriter- Throws:
IOException
-
writeField
- Specified by:
writeFieldin classStoredFieldsWriter- Throws:
IOException
-
writeField
- Specified by:
writeFieldin classStoredFieldsWriter- Throws:
IOException
-
writeField
- Specified by:
writeFieldin classStoredFieldsWriter- Throws:
IOException
-
finish
- Specified by:
finishin classStoredFieldsWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classStoredFieldsWriter- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
-