public class QDataSetStreamHandler extends java.lang.Object implements StreamHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUILDER_JOIN_CHILDREN |
| Constructor and Description |
|---|
QDataSetStreamHandler() |
| Modifier and Type | Method and Description |
|---|---|
MutablePropertyDataSet |
flattenJoin(QDataSet ds)
since an appended series of rank 1 datasets will return as a rank 2 join, this utility provides a
standard place to flatten it.
|
QDataSet |
getDataSet()
return the default dataset for the stream.
|
QDataSet |
getDataSet(java.lang.String name)
return the dataset from the stream.
|
java.util.List<java.lang.String> |
getDataSetNames()
return a list of available datasets
|
java.util.Map<java.lang.String,java.lang.String> |
getDataSetNamesAndDescriptions()
return a list of available datasets and their label (or name if not available).
|
boolean |
getReadPackets()
if true, then packets are interpreted.
|
static boolean |
isFlattenableJoin(QDataSet ds)
If the dataset is a join of appendable datasets, then we can append them to reduce the rank by 1 and
make one long time series.
|
void |
packet(PacketDescriptor pd,
java.nio.ByteBuffer data)
receive a data packet from the stream.
|
void |
packetDescriptor(PacketDescriptor pd)
description of a new packet type.
|
void |
setReadPackets(boolean val)
set this is false if you just want to look at the empty dataset metadata.
|
void |
streamClosed(StreamDescriptor sd)
indicates the stream end is encountered.
|
void |
streamComment(StreamComment se)
comments on the stream.
|
void |
streamDescriptor(StreamDescriptor sd)
initial description of the stream.
|
void |
streamException(StreamException se)
This is used to indicate an exception occurred in the source.
|
public static final java.lang.String BUILDER_JOIN_CHILDREN
public java.util.List<java.lang.String> getDataSetNames()
public java.util.Map<java.lang.String,java.lang.String> getDataSetNamesAndDescriptions()
public void streamDescriptor(StreamDescriptor sd) throws StreamException
StreamHandlerstreamDescriptor in interface StreamHandlerStreamExceptionpublic void packetDescriptor(PacketDescriptor pd) throws StreamException
StreamHandlerpacketDescriptor in interface StreamHandlerStreamExceptionpublic void packet(PacketDescriptor pd, java.nio.ByteBuffer data) throws StreamException
StreamHandlerpacket in interface StreamHandlerpd - PacketDescriptor describing the data.data - ByteBuffer containing the data.StreamException - when something is wrong with the content of the stream.public void streamClosed(StreamDescriptor sd) throws StreamException
StreamHandlerstreamClosed in interface StreamHandlerStreamExceptionpublic void streamComment(StreamComment se) throws StreamException
StreamHandlerstreamComment in interface StreamHandlerStreamExceptionpublic void streamException(StreamException se) throws StreamException
StreamHandlerstreamException in interface StreamHandlerStreamExceptionpublic QDataSet getDataSet(java.lang.String name)
name - the name of the dataset to retrieve.public QDataSet getDataSet()
public void setReadPackets(boolean val)
val - public boolean getReadPackets()
public static boolean isFlattenableJoin(QDataSet ds)
ds - a join dataset of rank 2 or rank 3.public MutablePropertyDataSet flattenJoin(QDataSet ds)
ds - rank 2 or 3 join dataset.