public class RAMAndFileJdbcIndexOutput extends org.apache.lucene.store.IndexOutput implements JdbcIndexConfigurable
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_THRESHOLD
The default value for the threshold (in bytes).
|
static java.lang.String |
INDEX_OUTPUT_THRESHOLD_SETTING
The threshold setting name.
|
| Constructor and Description |
|---|
RAMAndFileJdbcIndexOutput() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream to further operations
|
void |
configure(java.lang.String name, OracleJdbcDirectory jdbcDirectory)
Configures this object instance with the given name and OracleJdbcDirectory object.
|
void |
flush()
Forces any buffered output to be written
|
long |
getChecksum()
Returns the current checksum of bytes written so far
|
long |
getFilePointer()
Returns the current position in this file, where the next write will occur
|
long |
length()
Returns he number of bytes in the file
|
void |
seek(long pos)
Sets the current position in this file, where the next write will occur
|
void |
writeByte(byte b)
Writes a single byte.
|
void |
writeBytes(byte[] b, int offset, int length)
Writes an array of bytes.
|
public static final long DEFAULT_THRESHOLD
public static final java.lang.String INDEX_OUTPUT_THRESHOLD_SETTING
JdbcFileEntrySettings.setLongSetting(String, long). Should be set in bytes.
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.lucene.store.IndexOutputjava.io.IOException
public void configure(java.lang.String name,
OracleJdbcDirectory jdbcDirectory)
throws java.io.IOException
configure in interface JdbcIndexConfigurablename - the name of this IndexOutput objectjdbcDirectory - the OracleJdbcDirectory where the index is stored.java.io.IOException
public void flush()
throws java.io.IOException
flush in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic long getChecksum()
getChecksum in class org.apache.lucene.store.IndexOutputpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutput
public long length()
throws java.io.IOException
length in class org.apache.lucene.store.IndexOutputjava.io.IOException
public void seek(long pos)
throws java.io.IOException
java.io.IOException
public void writeByte(byte b)
throws java.io.IOException
writeByte in class org.apache.lucene.store.DataOutputb - a byte to write.java.io.IOException
public void writeBytes(byte[] b,
int offset,
int length)
throws java.io.IOException
writeBytes in class org.apache.lucene.store.DataOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writejava.io.IOExceptionCopyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.