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(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(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 IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.IndexInputIOExceptionpublic void configure(String name, OracleJdbcDirectory directory) throws IOException
configure in interface JdbcIndexConfigurablename - the name of this IndexOutput objectdirectory - the OracleJdbcDirectory where the index is stored.IOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexInputpublic long length()
length in class org.apache.lucene.store.IndexInputpublic byte readByte()
throws IOException
readByte in class org.apache.lucene.store.DataInputIOExceptionDataOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
throws 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 readIOExceptionDataOutput.writeBytes(byte[],int)public void seek(long pos)
throws IOException
seek in class org.apache.lucene.store.IndexInputIOExceptionpublic org.apache.lucene.store.IndexInput slice(String sliceDescription, long offset, long length)
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.