org.elasticsearch.common.lucene.store
Class ChecksumIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.elasticsearch.common.lucene.store.ChecksumIndexOutput
- All Implemented Interfaces:
- Closeable
public class ChecksumIndexOutput
- extends org.apache.lucene.store.IndexOutput
Methods inherited from class org.apache.lucene.store.DataOutput |
copyBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLong |
ChecksumIndexOutput
public ChecksumIndexOutput(org.apache.lucene.store.IndexOutput out,
Checksum digest)
digest
public Checksum digest()
writeByte
public void writeByte(byte b)
throws IOException
- Specified by:
writeByte
in class org.apache.lucene.store.DataOutput
- Throws:
IOException
setLength
public void setLength(long length)
throws IOException
- Overrides:
setLength
in class org.apache.lucene.store.IndexOutput
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
writeBytes
public void writeBytes(byte[] b,
int offset,
int length)
throws IOException
- Specified by:
writeBytes
in class org.apache.lucene.store.DataOutput
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in class org.apache.lucene.store.IndexOutput
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class org.apache.lucene.store.IndexOutput
- Throws:
IOException
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointer
in class org.apache.lucene.store.IndexOutput
seek
public void seek(long pos)
throws IOException
- Specified by:
seek
in class org.apache.lucene.store.IndexOutput
- Throws:
IOException
length
public long length()
throws IOException
- Specified by:
length
in class org.apache.lucene.store.IndexOutput
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.