Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.ide.index
Interface QueryResult


public interface QueryResult

A result from an index query. This consists of the URL containing the result, as well as the offset and length of the result within the file.


Method Summary
 java.lang.String getKey()
          The index key matching this result.
 int getLength()
          Get the length of the result.
 int getOffset()
          Get the offset of the result within the file.
 java.net.URL getURL()
          Get the URL of the file containing the result.
 

Method Detail

getKey

java.lang.String getKey()
The index key matching this result. This is useful if the query criteria contained more than one key.

Returns:
the index key matching this result

getURL

java.net.URL getURL()
Get the URL of the file containing the result.

Returns:
the URL containing the result

getOffset

int getOffset()
Get the offset of the result within the file. This can be -1 for some criteria that do not have a location, such as file name.

Returns:
the offset of the result, or -1 if the result does not have a location

getLength

int getLength()
Get the length of the result. This can be -1 for some criteria that do not have a location, such as file name.

Returns:
the length of the result, or -1 if the result does not have a location

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.