public class FetchOnOpenJdbcIndexInput extends org.apache.lucene.store.IndexInput implements JdbcIndexConfigurable
| Constructor and Description |
|---|
FetchOnOpenJdbcIndexInput()
Constructs a FetchOnOpenJdbcIndexInput object
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream to further operations.
|
void |
configure(java.lang.String name, OracleJdbcDirectory directory)
Configures this object instance with the given name and OracleJdbcDirectory object.
|
long |
getFilePointer()
Returns the current position in this file, where the next write will occur
|
long |
length()
Returns the number of bytes in the file
|
byte |
readByte()
Reads and returns a single byte
|
void |
readBytes(byte[] b, int offset, int len)
Reads a specified number of bytes into an array at the speficied offset
|
void |
seek(long pos)
Sets the current position in this file, where the next write will occur
|
org.apache.lucene.store.IndexInput |
slice(java.lang.String sliceDescription, long offset, long length)
Creates a slice of this index input, with the given description, offset, and length.
|
public FetchOnOpenJdbcIndexInput()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.lucene.store.IndexInputjava.io.IOException
public void configure(java.lang.String name,
OracleJdbcDirectory directory)
throws java.io.IOException
configure in interface JdbcIndexConfigurablename - the name of this IndexOutput objectdirectory - the OracleJdbcDirectory where the index is stored.java.io.IOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexInputpublic long length()
length in class org.apache.lucene.store.IndexInput
public byte readByte()
throws java.io.IOException
readByte in class org.apache.lucene.store.DataInputjava.io.IOExceptionDataOutput.writeByte(byte)
public void readBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
readBytes in class org.apache.lucene.store.DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readjava.io.IOExceptionDataOutput.writeBytes(byte[],int)
public void seek(long pos)
throws java.io.IOException
seek in class org.apache.lucene.store.IndexInputjava.io.IOException
public org.apache.lucene.store.IndexInput slice(java.lang.String sliceDescription,
long offset,
long length)
slice in class org.apache.lucene.store.IndexInputCopyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.