Package uk.gov.gchq.gaffer.time.function
Class ToTimestampSet
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Long,TimestampSet>
-
- uk.gov.gchq.gaffer.time.function.ToTimestampSet
-
- All Implemented Interfaces:
Function<Long,TimestampSet>
public class ToTimestampSet extends uk.gov.gchq.koryphe.function.KorypheFunction<Long,TimestampSet>
Creates aTimestampSet
and initialises it with a single timestamp.
-
-
Constructor Summary
Constructors Constructor Description ToTimestampSet()
ToTimestampSet(CommonTimeUtil.TimeBucket bucket, boolean toMilliseconds)
ToTimestampSet(CommonTimeUtil.TimeBucket bucket, Integer maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampSet
apply(Long timestamp)
CommonTimeUtil.TimeBucket
getBucket()
Integer
getMaxSize()
long
getMillisCorrection()
void
setBucket(String bucket)
void
setBucket(CommonTimeUtil.TimeBucket bucket)
void
setMaxSize(Integer maxSize)
void
setMillisCorrection(long millisCorrection)
-
-
-
Constructor Detail
-
ToTimestampSet
public ToTimestampSet()
-
ToTimestampSet
public ToTimestampSet(CommonTimeUtil.TimeBucket bucket, boolean toMilliseconds)
-
ToTimestampSet
public ToTimestampSet(CommonTimeUtil.TimeBucket bucket, Integer maxSize)
-
-
Method Detail
-
apply
public TimestampSet apply(Long timestamp)
-
getBucket
public CommonTimeUtil.TimeBucket getBucket()
-
setBucket
public void setBucket(CommonTimeUtil.TimeBucket bucket)
-
setBucket
public void setBucket(String bucket)
-
getMillisCorrection
public long getMillisCorrection()
-
setMillisCorrection
public void setMillisCorrection(long millisCorrection)
-
getMaxSize
public Integer getMaxSize()
-
setMaxSize
public void setMaxSize(Integer maxSize)
-
-