org.apache.lucene.store.bytebuffer
Class ByteBufferIndexOutput

java.lang.Object
  extended by org.apache.lucene.store.DataOutput
      extended by org.apache.lucene.store.IndexOutput
          extended by org.apache.lucene.store.bytebuffer.ByteBufferIndexOutput
All Implemented Interfaces:
Closeable

public class ByteBufferIndexOutput
extends org.apache.lucene.store.IndexOutput


Constructor Summary
ByteBufferIndexOutput(ByteBufferDirectory dir, String name, ByteBufferAllocator allocator, ByteBufferAllocator.Type allocatorType, ByteBufferFileOutput file)
           
 
Method Summary
 void close()
           
 void flush()
           
 long getFilePointer()
           
 long length()
           
 void seek(long pos)
           
 void writeByte(byte b)
           
 void writeBytes(byte[] b, int offset, int len)
           
 
Methods inherited from class org.apache.lucene.store.IndexOutput
setLength
 
Methods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferIndexOutput

public ByteBufferIndexOutput(ByteBufferDirectory dir,
                             String name,
                             ByteBufferAllocator allocator,
                             ByteBufferAllocator.Type allocatorType,
                             ByteBufferFileOutput file)
                      throws IOException
Throws:
IOException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class org.apache.lucene.store.IndexOutput
Throws:
IOException

seek

public void seek(long pos)
          throws IOException
Specified by:
seek in class org.apache.lucene.store.IndexOutput
Throws:
IOException

length

public long length()
Specified by:
length in class org.apache.lucene.store.IndexOutput

writeByte

public void writeByte(byte b)
               throws IOException
Specified by:
writeByte in class org.apache.lucene.store.DataOutput
Throws:
IOException

writeBytes

public void writeBytes(byte[] b,
                       int offset,
                       int len)
                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

getFilePointer

public long getFilePointer()
Specified by:
getFilePointer in class org.apache.lucene.store.IndexOutput


Copyright © 2009-2012. All Rights Reserved.