public abstract class IndexOutput extends DataOutput implements Closeable
DataOutput
for appending data to a file in a Directory
.
Instances of this class are not thread-safe.Directory
,
IndexInput
Modifier | Constructor and Description |
---|---|
protected |
IndexOutput(String resourceDescription,
String name)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes this stream to further operations.
|
abstract long |
getChecksum()
Returns the current checksum of bytes written so far
|
abstract long |
getFilePointer()
Returns the current position in this file, where the next write will
occur.
|
String |
getName()
Returns the name used to create this
IndexOutput . |
String |
toString() |
copyBytes, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
protected IndexOutput(String resourceDescription, String name)
toString()
.public String getName()
IndexOutput
. This is especially useful when using
Directory.createTempOutput(java.lang.String, java.lang.String, org.apache.lucene.store.IOContext)
.public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public abstract long getFilePointer()
public abstract long getChecksum() throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.