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 aTimestampSetand 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 TimestampSetapply(Long timestamp)CommonTimeUtil.TimeBucketgetBucket()IntegergetMaxSize()longgetMillisCorrection()voidsetBucket(String bucket)voidsetBucket(CommonTimeUtil.TimeBucket bucket)voidsetMaxSize(Integer maxSize)voidsetMillisCorrection(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)
-
-