public class TimeStampKeysSelector extends Object implements GraphKeysSelector
Constructor and Description |
---|
TimeStampKeysSelector() |
Modifier and Type | Method and Description |
---|---|
long |
getGranularity()
Gets the granularity.
|
Double |
select(Sample sample)
Do the projection from the specified sample
|
boolean |
selectsBeginTime()
Gets a status defining whether the projection is done with the begin or
end time of the sample.
|
void |
setGranularity(long granularity)
Sets the granularity.
|
void |
setSelectBeginTime(boolean selectBeginTime)
Sets the status defining whether the projection is done with the begin or
end time of the sample.
|
public long getGranularity()
public void setGranularity(long granularity)
granularity
- the granularity to setpublic final boolean selectsBeginTime()
public final void setSelectBeginTime(boolean selectBeginTime)
selectBeginTime
- the status to setpublic Double select(Sample sample)
SampleSelector
select
in interface SampleSelector<Double>
sample
- the sampleCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.