public abstract class IndexOutput extends DataOutput implements
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 |
resourceDescription,
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.
|
|
getName()
Returns the name used to create this
IndexOutput . |
|
toString() |
copyBytes, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
protected IndexOutput( resourceDescription, name)
toString()
.public 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
in interface
in interface
public abstract long getFilePointer()
public abstract long getChecksum() throws
public toString()
in class
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.