public abstract class IndexOutput extends DataOutput implements java.io.Closeable
IndexOutput
may only be used from one thread, because it is not
thread safe (it keeps internal state like file position).
Directory
,
IndexInput
Modifier | Constructor and Description |
---|---|
protected |
IndexOutput(java.lang.String resourceDescription,
java.lang.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.
|
java.lang.String |
getName()
Returns the name used to create this
IndexOutput . |
java.lang.String |
toString() |
copyBytes, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
protected IndexOutput(java.lang.String resourceDescription, java.lang.String name)
toString()
.public java.lang.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 java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public abstract long getFilePointer()
public abstract long getChecksum() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.