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 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(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 String INDEX_OUTPUT_THRESHOLD_SETTING
JdbcFileEntrySettings.setLongSetting(String, long).
Should be set in bytes.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.IndexOutputIOExceptionpublic void configure(String name, OracleJdbcDirectory jdbcDirectory) throws IOException
configure in interface JdbcIndexConfigurablename - the name of this IndexOutput objectjdbcDirectory - the OracleJdbcDirectory where the index is stored.IOExceptionpublic void flush()
throws IOException
flush in class org.apache.lucene.store.IndexOutputIOExceptionpublic long getChecksum()
public long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutputpublic long length()
throws IOException
length in class org.apache.lucene.store.IndexOutputIOExceptionpublic void seek(long pos)
throws IOException
seek in class org.apache.lucene.store.IndexOutputIOExceptionpublic void writeByte(byte b)
throws IOException
writeByte in class org.apache.lucene.store.DataOutputb - a byte to write.IOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
writeBytes in class org.apache.lucene.store.DataOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writeIOExceptionCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.