org.wdssii.core
Class IndexRecord

java.lang.Object
  extended by org.wdssii.core.IndexRecord

public class IndexRecord
extends Object

Author:
lakshman

Field Summary
private  String[][] paramsArray
           
private  String[] selections
           
private  String sourceName
           
private  Date time
           
 
Constructor Summary
IndexRecord(Date time, String[] selections, String[] params)
           
IndexRecord(Date time, String[] selections, String[][] params)
           
 
Method Summary
static IndexRecord createIndexRecord(Element e, String indexLocation)
           
static IndexRecord createIndexRecord(String timeString, String timeFrac, String[] paramsList, String[] paramsChanges, String selectionsString, String indexLocation)
           
 String getDataType()
           
private static Date getDateFromString(String timeString, String frac)
           
 int getNumParams()
           
 String[] getParams()
           
 String[] getParams(int index)
           
 String[] getSelections()
           
 String getSourceName()
          returns a source name if one was set.
 String getSubType()
          An empty string if this record has no subtype
 Date getTime()
           
 String getTimeStamp()
           
 void setSourceName(String s)
           
 String toString()
           
 String toXMLString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

time

private Date time

selections

private String[] selections

paramsArray

private String[][] paramsArray

sourceName

private String sourceName
Constructor Detail

IndexRecord

public IndexRecord(Date time,
                   String[] selections,
                   String[][] params)

IndexRecord

public IndexRecord(Date time,
                   String[] selections,
                   String[] params)
Method Detail

setSourceName

public void setSourceName(String s)

getSourceName

public String getSourceName()
returns a source name if one was set.


getParams

public String[] getParams(int index)

getParams

public String[] getParams()

getSelections

public String[] getSelections()

getTime

public Date getTime()

getNumParams

public int getNumParams()

getDateFromString

private static Date getDateFromString(String timeString,
                                      String frac)

createIndexRecord

public static IndexRecord createIndexRecord(String timeString,
                                            String timeFrac,
                                            String[] paramsList,
                                            String[] paramsChanges,
                                            String selectionsString,
                                            String indexLocation)

createIndexRecord

public static IndexRecord createIndexRecord(Element e,
                                            String indexLocation)

toString

public String toString()
Overrides:
toString in class Object

toXMLString

public String toXMLString()

getDataType

public String getDataType()

getSubType

public String getSubType()
An empty string if this record has no subtype


getTimeStamp

public String getTimeStamp()