MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.opt.expr
Class CompareLiteralIndexSchema

java.lang.Object
  extended by ch.ethz.mxquery.opt.index.IndexSchema
      extended by ch.ethz.mxquery.opt.expr.CompareLiteralIndexSchema
All Implemented Interfaces:
Traversable

public final class CompareLiteralIndexSchema
extends IndexSchema

This is just a simple helper class to transfer all indexable compare literals to the index interface


Constructor Summary
CompareLiteralIndexSchema(int indexNb)
          Creates a new IndexSchema for compare literals
 
Method Summary
 java.lang.String getColumnName(int i)
           
 int getComparator(int position)
           
 int getCompareType(int position)
           
 Token[] getEndTokens()
           
 Token[][] getEndValues()
           
 CompareLiteral getLiteral(int i)
           
 Token[] getStartTokens()
           
 Token[][] getStartValues()
           
 void registerValue(CompareLiteral compareLiteral)
          Registeres a new comparison at the index
 void resetEndPart()
          Allows to reset the expressions which depend an a end variable
 void resetStartPart()
          Allows to reset the expressions which depend an a start variable
 int size()
           
 KXmlSerializer traverse(KXmlSerializer serializer)
           
 
Methods inherited from class ch.ethz.mxquery.opt.index.IndexSchema
getId, isGroupByIndex, isSimpleValueIndex, setGroupByIndex, setId, setSimpleValueIndex
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareLiteralIndexSchema

public CompareLiteralIndexSchema(int indexNb)
Creates a new IndexSchema for compare literals

Parameters:
indexNb - Has to be a unique index number
Method Detail

registerValue

public void registerValue(CompareLiteral compareLiteral)
Registeres a new comparison at the index

Parameters:
compareLiteral - The compare literal

size

public int size()
Specified by:
size in class IndexSchema

getLiteral

public CompareLiteral getLiteral(int i)

getColumnName

public java.lang.String getColumnName(int i)
Specified by:
getColumnName in class IndexSchema

getComparator

public int getComparator(int position)
Specified by:
getComparator in class IndexSchema

getCompareType

public int getCompareType(int position)
Specified by:
getCompareType in class IndexSchema

resetStartPart

public void resetStartPart()
Allows to reset the expressions which depend an a start variable


resetEndPart

public void resetEndPart()
Allows to reset the expressions which depend an a end variable


getStartTokens

public Token[] getStartTokens()
                       throws MXQueryException
Throws:
MXQueryException

getStartValues

public Token[][] getStartValues()
                         throws MXQueryException
Throws:
MXQueryException

getEndTokens

public Token[] getEndTokens()
                     throws MXQueryException
Throws:
MXQueryException

getEndValues

public Token[][] getEndValues()
                       throws MXQueryException
Throws:
MXQueryException

traverse

public KXmlSerializer traverse(KXmlSerializer serializer)

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich