org.apache.blur.store.blockcache_v2
Class CacheIndexOutput

java.lang.Object
  extended by org.apache.lucene.store.DataOutput
      extended by org.apache.lucene.store.IndexOutput
          extended by org.apache.blur.store.blockcache_v2.CacheIndexOutput
All Implemented Interfaces:
Closeable

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


Constructor Summary
CacheIndexOutput(CacheDirectory directory, String fileName, org.apache.lucene.store.IndexOutput indexOutput, Cache cache)
           
 
Method Summary
 void close()
           
 void flush()
           
 long getFilePointer()
           
 long length()
           
 void seek(long pos)
           
 void setLength(long length)
           
 void writeByte(byte b)
           
 void writeBytes(byte[] b, int offset, int len)
           
 
Methods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheIndexOutput

public CacheIndexOutput(CacheDirectory directory,
                        String fileName,
                        org.apache.lucene.store.IndexOutput indexOutput,
                        Cache cache)
                 throws IOException
Throws:
IOException
Method Detail

setLength

public void setLength(long length)
               throws IOException
Overrides:
setLength in class org.apache.lucene.store.IndexOutput
Throws:
IOException

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

seek

public void seek(long pos)
          throws IOException
Specified by:
seek 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

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

length

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


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.