Esri Geoportal Server
1.0

com.esri.gpt.server.assertion.index
Class AsnFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by com.esri.gpt.server.assertion.index.AsnFilter
All Implemented Interfaces:
Serializable

public class AsnFilter
extends Filter

A filter associated with a field and value.

See Also:
Serialized Form

Field Summary
static String CHAINED_OPERAND_AND
          Chained and operand = "and"
static String CHAINED_OPERAND_ANDNOT
          Chained and not operand = "andnot"
static String CHAINED_OPERAND_OR
          Chained or operand = "or"
 
Constructor Summary
AsnFilter(AsnFilter[] chain, String chainedOperand)
          Constructs with an associated field and value.
AsnFilter(String fieldName, String value)
          Constructs with an associated field and value.
 
Method Summary
 DocIdSet getDocIdSet(IndexReader reader)
          Applies the filter and returns a DocIdSet of matching documents.
 long getTimeMillis()
          Gets the execution time.
protected  void setTimeMillis(long millis)
          Sets the execution time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAINED_OPERAND_AND

public static final String CHAINED_OPERAND_AND
Chained and operand = "and"

See Also:
Constant Field Values

CHAINED_OPERAND_ANDNOT

public static final String CHAINED_OPERAND_ANDNOT
Chained and not operand = "andnot"

See Also:
Constant Field Values

CHAINED_OPERAND_OR

public static final String CHAINED_OPERAND_OR
Chained or operand = "or"

See Also:
Constant Field Values
Constructor Detail

AsnFilter

public AsnFilter(String fieldName,
                 String value)
Constructs with an associated field and value.

Parameters:
fieldName - the field name
value - the field name

AsnFilter

public AsnFilter(AsnFilter[] chain,
                 String chainedOperand)
Constructs with an associated field and value.

Parameters:
chain - chain
chainedOperand - operand
Method Detail

getTimeMillis

public long getTimeMillis()
Gets the execution time.

Returns:
the execution time (in milliseconds)

setTimeMillis

protected void setTimeMillis(long millis)
Sets the execution time.

Parameters:
millis - the execution time (in milliseconds)

getDocIdSet

public DocIdSet getDocIdSet(IndexReader reader)
                     throws IOException
Applies the filter and returns a DocIdSet of matching documents.

Specified by:
getDocIdSet in class Filter
Parameters:
reader - the index reader
Returns:
the DocIdSet the matching documents
Throws:
IOException - if an exception is encountered while reading the index

Esri Geoportal Server
1.0

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