org.infinispan.lucene
Class InfinispanIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.infinispan.lucene.InfinispanIndexOutput
- All Implemented Interfaces:
- Closeable
public final 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
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, writeString, writeStringStringMap, writeVInt, writeVLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfinispanIndexOutput
public InfinispanIndexOutput(AdvancedCache<?,?> metadataCache,
AdvancedCache<?,?> chunksCache,
FileCacheKey fileKey,
int bufferSize,
org.infinispan.lucene.FileListOperations fileList)
writeByte
public final void writeByte(byte b)
- Specified by:
writeByte
in class org.apache.lucene.store.DataOutput
writeBytes
public final void writeBytes(byte[] b,
int offset,
int length)
- Specified by:
writeBytes
in class org.apache.lucene.store.DataOutput
flush
public void flush()
- Specified by:
flush
in class org.apache.lucene.store.IndexOutput
storeCurrentBuffer
protected void storeCurrentBuffer(boolean isClose)
close
public void close()
- Specified by:
close
in interface Closeable
- Specified by:
close
in class org.apache.lucene.store.IndexOutput
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()
- Specified by:
length
in class org.apache.lucene.store.IndexOutput
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.