org.infinispan.lucene
Class InfinispanIndexOutput

java.lang.Object
  extended by org.apache.lucene.store.IndexOutput
      extended by org.infinispan.lucene.InfinispanIndexOutput

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

Responsible for writing to a Directory

Since:
4.0
Author:
Sanne Grinovero, Lukasz Moren, Davide Di Somma
See Also:
Directory, IndexInput

Constructor Summary
InfinispanIndexOutput(AdvancedCache cache, FileCacheKey fileKey, int bufferSize, org.infinispan.lucene.FileListOperations fileList)
           
 
Method Summary
 void close()
           
 void doFlush()
           
 void flush()
           
 long getFilePointer()
           
 long length()
           
 void seek(long pos)
           
 void writeByte(byte b)
           
 void writeBytes(byte[] b, int offset, int length)
           
 
Methods inherited from class org.apache.lucene.store.IndexOutput
copyBytes, setLength, writeBytes, writeChars, writeChars, writeInt, writeLong, writeString, writeStringStringMap, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfinispanIndexOutput

public InfinispanIndexOutput(AdvancedCache cache,
                             FileCacheKey fileKey,
                             int bufferSize,
                             org.infinispan.lucene.FileListOperations fileList)
                      throws IOException
Throws:
IOException
Method Detail

writeByte

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

writeBytes

public void writeBytes(byte[] b,
                       int offset,
                       int length)
                throws IOException
Specified by:
writeBytes in class org.apache.lucene.store.IndexOutput
Throws:
IOException

flush

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

doFlush

public void doFlush()
             throws IOException
Throws:
IOException

close

public void close()
           throws IOException
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

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.