org.openanzo.common.rdb.layout.indexer
Class LiteralIndexQuery

java.lang.Object
  extended by org.openanzo.common.rdb.layout.indexer.LiteralIndexQuery

public class LiteralIndexQuery
extends java.lang.Object

Literal indexer query processor

Author:
Wing Yung (wingyung@us.ibm.com)

Constructor Summary
LiteralIndexQuery()
          Create a new LiteralIndexQuery object
 
Method Summary
 void initialize(java.util.Properties properties)
          Initialize with a set of configuration properties
 java.util.List<java.lang.Long> query(java.lang.String queryStr)
          Query the index and return set if IDs for literals that match the query
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteralIndexQuery

public LiteralIndexQuery()
Create a new LiteralIndexQuery object

Method Detail

initialize

public void initialize(java.util.Properties properties)
                throws IndexerException
Initialize with a set of configuration properties

Parameters:
properties - containing configuration data
Throws:
IndexerException - if there was no index location specified

query

public java.util.List<java.lang.Long> query(java.lang.String queryStr)
                                     throws IndexerException
Query the index and return set if IDs for literals that match the query

Parameters:
queryStr - query to run on indexer
Returns:
set of IDs for literals that match the query
Throws:
IndexerException - if there was an error parsing, or processing the query


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.