Class IndexOutput

java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
ByteBuffersIndexOutput, NativeUnixDirectory.NativeUnixIndexOutput, OutputStreamIndexOutput, RAMOutputStream, RateLimitedIndexOutput

public abstract class IndexOutput extends DataOutput implements Closeable
A DataOutput for appending data to a file in a Directory. Instances of this class are not thread-safe.
See Also:
  • Field Details

    • resourceDescription

      private final String resourceDescription
      Full description of this output, e.g. which class such as FSIndexOutput, and the full path to the file
    • name

      private final String name
      Just the name part from resourceDescription
  • Constructor Details

    • IndexOutput

      protected IndexOutput(String resourceDescription, String name)
      Sole constructor. resourceDescription should be non-null, opaque string describing this resource; it's returned from toString().
  • Method Details