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 Closeable
close
in interface AutoCloseable
close
in class org.apache.lucene.store.IndexOutput
IOException
public void configure(String name, OracleJdbcDirectory jdbcDirectory) throws IOException
configure
in interface JdbcIndexConfigurable
name
- the name of this IndexOutput objectjdbcDirectory
- the OracleJdbcDirectory where the index is stored.IOException
public void flush() throws IOException
flush
in class org.apache.lucene.store.IndexOutput
IOException
public long getChecksum()
public long getFilePointer()
getFilePointer
in class org.apache.lucene.store.IndexOutput
public long length() throws IOException
length
in class org.apache.lucene.store.IndexOutput
IOException
public void seek(long pos) throws IOException
seek
in class org.apache.lucene.store.IndexOutput
IOException
public void writeByte(byte b) throws IOException
writeByte
in class org.apache.lucene.store.DataOutput
b
- a byte to write.IOException
public void writeBytes(byte[] b, int offset, int length) throws IOException
writeBytes
in class org.apache.lucene.store.DataOutput
b
- the bytes to writeoffset
- the offset in the byte arraylength
- the number of bytes to writeIOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.