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 Closeable
close
in interface AutoCloseable
close
in class org.apache.lucene.store.IndexInput
IOException
public void configure(String name, OracleJdbcDirectory directory) throws IOException
configure
in interface JdbcIndexConfigurable
name
- the name of this IndexOutput objectdirectory
- the OracleJdbcDirectory where the index is stored.IOException
public long getFilePointer()
getFilePointer
in class org.apache.lucene.store.IndexInput
public long length()
length
in class org.apache.lucene.store.IndexInput
public byte readByte() throws IOException
readByte
in class org.apache.lucene.store.DataInput
IOException
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len) throws IOException
readBytes
in class org.apache.lucene.store.DataInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readIOException
DataOutput.writeBytes(byte[],int)
public void seek(long pos) throws IOException
seek
in class org.apache.lucene.store.IndexInput
IOException
public org.apache.lucene.store.IndexInput slice(String sliceDescription, long offset, long length)
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.