public abstract class IndexOutput extends DataOutput implements 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(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, writeStringSet, writeStringStringMap, 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-2017 Apache Software Foundation. All Rights Reserved.