Esri Geoportal Server
1.0

com.esri.gpt.control.search.browse
Class TocIndexAdapter

java.lang.Object
  extended by com.esri.gpt.control.search.browse.TocIndexAdapter

public class TocIndexAdapter
extends Object

Provides utilities for querying a Lucene index during TOC construction.


Constructor Summary
TocIndexAdapter()
          Default constructor
 
Method Summary
 void close()
          Closes any open resources.
 IndexSearcher getSearcher(TocContext context)
          Gets the index searcher.
 String[] queryFieldByUuid(TocContext context, String fieldName, String uuid)
          Returns the field values associated with a document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TocIndexAdapter

public TocIndexAdapter()
Default constructor

Method Detail

close

public void close()
Closes any open resources.


getSearcher

public IndexSearcher getSearcher(TocContext context)
                          throws CorruptIndexException,
                                 IOException
Gets the index searcher.

Parameters:
context - the operation context
Returns:
the index searcher
Throws:
CorruptIndexException - if the index is corrupt
IOException - if an I/O exception occurs

queryFieldByUuid

public String[] queryFieldByUuid(TocContext context,
                                 String fieldName,
                                 String uuid)
                          throws CorruptIndexException,
                                 IOException
Returns the field values associated with a document

Parameters:
context - the operation context
fieldName - the field name
uuid - the document uuid
Returns:
the field values (null if not found)
Throws:
CorruptIndexException - if the index is corrupt
IOException - if an I/O exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.