T- the type of object to index
public interface QueryableIndex<T> extends Index<T>
Indexthat adds methods for accessing data. If the
Indexis not going to be accessed via property functions, an
IndexPatternQuerierneeds to be implemented and associated with the
QueryCacheis used to maintain an in-memory cache of objects that are defined at query time, but may be needed over several iterations of the query. Binding objects are passed along to each stage of the query execution and they contain mappings of variables to the nodes that correspond to answers of the query. In some cases, however, you need to store more information than just a node. For instance, a query may define a floating spatial region and check items for their inclusion in that region. The
Indexcan assign a blank node to that region, map that node to the binding, and also map the node to the actual region in the cache. As items are bound and passed to the
Index, it can access the region through the query cache and check to see if the bound items intersect it.
|Modifier and Type||Method and Description|
Find a record in the index.
Get the query cache.
Query for all records containing a specific value.
node- the key of the record to find
value- the value to match
Copyright © 2001-2009 by BBN Technologies, Inc. All rights reserved. Use is subject to license terms. BBN® is a registered trademark of BBN Technologies, Inc. Parliament™ is a trademark of BBN Technologies, Inc.