Package deltix.qsrv.hf.tickdb.ui.tbshell
Class Selector
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.ui.tbshell.Selector
-
public class Selector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_ENDTIMEstatic longDEFAULT_TIME
-
Constructor Summary
Constructors Constructor Description Selector(TickDBShell shell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(deltix.qsrv.hf.pub.InstrumentIdentity id)booleandoCommand(java.lang.String key, java.lang.String args, java.lang.String fileId, java.io.LineNumberReader reader)protected voiddoSet()booleanenough(deltix.qsrv.hf.pub.InstrumentMessage msg)longgetEndtime()longgetEndtime(long startTime)intgetNumLines()deltix.qsrv.hf.pub.InstrumentIdentity[]getSelectedEntities()java.lang.String[]getSelectedTypes()SelectionOptionsgetSelectionOptions()longgetTime()longgetTime(long endTime)booleanisRaw()voidprintCursor(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> cur)voidprintCursorRate(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> cur)voidrunQuery(java.lang.String text)voidrunQuery(java.lang.String args, java.lang.String fileId, java.io.LineNumberReader reader)InstrumentMessageSourceselect()InstrumentMessageSourceselect(boolean raw)InstrumentMessageSourceselect(boolean raw, boolean live)InstrumentMessageSourceselect(long timestamp, SelectionOptions options, TickStream[] tickStreams)InstrumentMessageSourceselect(SelectionOptions options)voidsetDecodeRaw(boolean decodeRaw)voidsetEndtime(long endtime)voidsetEndTimeOffset(deltix.util.time.Interval offset)voidsetNum(int num)voidsetTime(long time)voidsetTimeOffset(deltix.util.time.Interval offset)voidtestDescribe(java.lang.String args, java.lang.String fileId, java.io.LineNumberReader reader)voidtestQQL(java.lang.String query, java.lang.String fileId, java.io.LineNumberReader reader)
-
-
-
Field Detail
-
DEFAULT_TIME
public static final long DEFAULT_TIME
- See Also:
- Constant Field Values
-
DEFAULT_ENDTIME
public static final long DEFAULT_ENDTIME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Selector
public Selector(TickDBShell shell)
-
-
Method Detail
-
setTime
public void setTime(long time)
-
setEndtime
public void setEndtime(long endtime)
-
setTimeOffset
public void setTimeOffset(deltix.util.time.Interval offset)
-
setEndTimeOffset
public void setEndTimeOffset(deltix.util.time.Interval offset)
-
setNum
public void setNum(int num)
-
getTime
public long getTime()
-
getTime
public long getTime(long endTime)
-
getEndtime
public long getEndtime()
-
getEndtime
public long getEndtime(long startTime)
-
setDecodeRaw
public void setDecodeRaw(boolean decodeRaw)
-
doSet
protected void doSet()
-
doCommand
public boolean doCommand(java.lang.String key, java.lang.String args, java.lang.String fileId, java.io.LineNumberReader reader) throws java.lang.Exception- Throws:
java.lang.Exception
-
testDescribe
public void testDescribe(java.lang.String args, java.lang.String fileId, java.io.LineNumberReader reader) throws java.io.IOException- Throws:
java.io.IOException
-
testQQL
public void testQQL(java.lang.String query, java.lang.String fileId, java.io.LineNumberReader reader) throws java.io.IOException- Throws:
java.io.IOException
-
getSelectedEntities
public deltix.qsrv.hf.pub.InstrumentIdentity[] getSelectedEntities()
-
getSelectedTypes
public java.lang.String[] getSelectedTypes()
-
select
public InstrumentMessageSource select(boolean raw)
-
select
public InstrumentMessageSource select(boolean raw, boolean live)
-
select
public InstrumentMessageSource select()
-
select
public InstrumentMessageSource select(SelectionOptions options)
-
select
public InstrumentMessageSource select(long timestamp, SelectionOptions options, TickStream[] tickStreams)
-
accept
public boolean accept(deltix.qsrv.hf.pub.InstrumentIdentity id)
-
enough
public boolean enough(deltix.qsrv.hf.pub.InstrumentMessage msg)
-
getNumLines
public int getNumLines()
-
isRaw
public boolean isRaw()
-
getSelectionOptions
public SelectionOptions getSelectionOptions()
-
runQuery
public void runQuery(java.lang.String args, java.lang.String fileId, java.io.LineNumberReader reader) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
runQuery
public void runQuery(java.lang.String text) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
printCursor
public void printCursor(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> cur)
-
printCursorRate
public void printCursorRate(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> cur)
-
-