public static final class ChannelMetaDataDAO.SampleBucketInformation extends Object
Constructor and Description |
---|
SampleBucketInformation(long bucketEndTime,
long bucketStartTime,
UUID channelDataId,
String channelName,
int decimationLevel)
Creates a sample-bucket meta-data object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getBucketEndTime()
Returns the end time of this sample bucket as the number of
nanoseconds since epoch (January 1st, 1970, 00:00:00 UTC).
|
SampleBucketId |
getBucketId()
Returns the unique ID identifiying this sample bucket.
|
long |
getBucketStartTime()
Returns the start time of this sample bucket as the number of
nanoseconds since epoch (January 1st, 1970, 00:00:00 UTC).
|
UUID |
getChannelDataId()
Returns the unique identifier that is associated with the data
(samples) for the channel.
|
String |
getChannelName()
Returns the name of the channel for which this sample bucket stores
data.
|
int |
getDecimationLevel()
Returns the decimation level for which this sample bucket stores
data.
|
int |
hashCode() |
String |
toString() |
public SampleBucketInformation(long bucketEndTime, long bucketStartTime, UUID channelDataId, String channelName, int decimationLevel)
bucketEndTime
- end time of this sample bucket as the number of
nanoseconds since epoch (January 1st, 1970, 00:00:00 UTC).bucketStartTime
- start time of this sample bucket as the number of
nanoseconds since epoch (January 1st, 1970, 00:00:00 UTC).channelDataId
- unique identifier associated with the data (samples) for
the channel.channelName
- name of the channel for which this sample bucket stores
data.decimationLevel
- decimation level for which this sample bucket stores data.
The decimation level is identified by the number of
seconds between two samples. A decimation level of zero
specifies that this decimation level stores (undecimated)
raw samples, which typically do not have a fixed period.IllegalArgumentException
- if the channelName
is the empty string, if
the bucketStartTime
is negative, and if the
bucketEndTime
is less than the
bucketStartTime
.NullPointerException
- if the channelDataId
or the
channelName
is null
.public long getBucketEndTime()
public SampleBucketId getBucketId()
public long getBucketStartTime()
Returns the start time of this sample bucket as the number of nanoseconds since epoch (January 1st, 1970, 00:00:00 UTC). A bucket only stores sample with time stamps equal to or greater than its start time. If there is a preceding bucket for the same channel and decimation level (a bucket with a lesser start time), this bucket's start time must be strictly greater than the preceding bucket's end time.
This number is the same one as the one that is provided as part of
the bucket ID returned by getBucketId()
.
public UUID getChannelDataId()
Returns the unique identifier that is associated with the data (samples) for the channel. While a channel's name might change due to renaming, the data ID will be permanent (until the channel is deleted), so even after renaming a channel, its associated data can still be found.
This identifier is the same one as the one that is provided as part
of the bucket ID returned by getBucketId()
.
public String getChannelName()
public int getDecimationLevel()
Returns the decimation level for which this sample bucket stores data. The decimation level is identified by the number of seconds between two samples. A decimation level of zero specifies that this decimation level stores (undecimated) raw samples, which typically do not have a fixed period.
This number is the same one as the one that is provided as part of
the bucket ID returned by getBucketId()
.
Copyright © 2011–2017 aquenos GmbH. All rights reserved.