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

E13403-04

oracle.ide.index
Interface DataCollector


public interface DataCollector

Collects index data from an Indexer.


Method Summary
 void add(java.lang.String key, int hash, int flags, int start, int end)
          Add index data for the given key.
 int hash(int hash, char c)
          Generate a new hash code based on an existing hash code, by adding the given character.
 int hash(javax.swing.text.Segment segment)
          Generate a hash code from the given Segment.
 

Method Detail

add

void add(java.lang.String key,
         int hash,
         int flags,
         int start,
         int end)
Add index data for the given key. The data is stored as a hash code. The hash(javax.swing.text.Segment) method can be used to generate the hash.

Parameters:
key - the data key
hash - the hash code of the data
flags - additional data flags
start - the start position of the data in the buffer
end - the end position of the data in the buffer

hash

int hash(javax.swing.text.Segment segment)
Generate a hash code from the given Segment.

Parameters:
segment - the segment
Returns:
the hash code

hash

int hash(int hash,
         char c)
Generate a new hash code based on an existing hash code, by adding the given character. To generate a new hash code, pass 0 in for the existing hash.

Parameters:
hash - the existing hash code
c - the character to add
Returns:
the new hash code

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.