org.compass.needle.terracotta
Class TerracottaIndexOutput2

java.lang.Object
  extended by org.apache.lucene.store.IndexOutput
      extended by org.compass.needle.terracotta.TerracottaIndexOutput2

public class TerracottaIndexOutput2
extends IndexOutput

An index output that obtains a lock only when adding data to the file (to terracotta).

Author:
kimchy

Constructor Summary
TerracottaIndexOutput2(TerracottaDirectory dir, String name)
           
 
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
copyBytes, setLength, writeBytes, writeChars, writeChars, writeInt, writeLong, writeString, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerracottaIndexOutput2

TerracottaIndexOutput2(TerracottaDirectory dir,
                       String name)
                 throws IOException
Throws:
IOException
Method Detail

writeByte

public void writeByte(byte b)
               throws IOException
Specified by:
writeByte in class IndexOutput
Throws:
IOException

writeBytes

public void writeBytes(byte[] b,
                       int offset,
                       int len)
                throws IOException
Specified by:
writeBytes in class IndexOutput
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in class IndexOutput
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in class IndexOutput
Throws:
IOException

getFilePointer

public long getFilePointer()
Specified by:
getFilePointer in class IndexOutput

seek

public void seek(long pos)
          throws IOException
Specified by:
seek in class IndexOutput
Throws:
IOException

length

public long length()
            throws IOException
Specified by:
length in class IndexOutput
Throws:
IOException


Copyright (c) 2004-2009 The Compass Project.