MaskTimestampSetByTimeRange

See javadoc - uk.gov.gchq.gaffer.time.function.MaskTimestampSetByTimeRange

Available since Gaffer version 1.9.0

Applies a mask to a timestamp set based on a start and end date

Examples

Mask with start date

Java
JSON
Full JSON
Python
MaskTimestampSetByTimeRange function = new MaskTimestampSetByTimeRange(10000L, null);
{
  "class" : "MaskTimestampSetByTimeRange",
  "startTime" : 10000,
  "timeUnit" : "MILLISECOND"
}
{
  "class" : "uk.gov.gchq.gaffer.time.function.MaskTimestampSetByTimeRange",
  "startTime" : 10000,
  "timeUnit" : "MILLISECOND"
}
g.MaskTimestampSetByTimeRange( 
  start_time=10000, 
  time_unit="MILLISECOND" 
)

Input type:

uk.gov.gchq.gaffer.time.RBMBackedTimestampSet

Example inputs:

Input TypeInputResult TypeResult
uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]

Mask with end date

Java
JSON
Full JSON
Python
MaskTimestampSetByTimeRange function = new MaskTimestampSetByTimeRange(null, 20000L);
{
  "class" : "MaskTimestampSetByTimeRange",
  "endTime" : 20000,
  "timeUnit" : "MILLISECOND"
}
{
  "class" : "uk.gov.gchq.gaffer.time.function.MaskTimestampSetByTimeRange",
  "endTime" : 20000,
  "timeUnit" : "MILLISECOND"
}
g.MaskTimestampSetByTimeRange( 
  end_time=20000, 
  time_unit="MILLISECOND" 
)

Input type:

uk.gov.gchq.gaffer.time.RBMBackedTimestampSet

Example inputs:

Input TypeInputResult TypeResult
uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z]

Mask with start and end date

Java
JSON
Full JSON
Python
MaskTimestampSetByTimeRange function = new MaskTimestampSetByTimeRange(10000L, 20000L);
{
  "class" : "MaskTimestampSetByTimeRange",
  "startTime" : 10000,
  "endTime" : 20000,
  "timeUnit" : "MILLISECOND"
}
{
  "class" : "uk.gov.gchq.gaffer.time.function.MaskTimestampSetByTimeRange",
  "startTime" : 10000,
  "endTime" : 20000,
  "timeUnit" : "MILLISECOND"
}
g.MaskTimestampSetByTimeRange( 
  start_time=10000, 
  end_time=20000, 
  time_unit="MILLISECOND" 
)

Input type:

uk.gov.gchq.gaffer.time.RBMBackedTimestampSet

Example inputs:

Input TypeInputResult TypeResult
uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:10Z,1970-01-01T00:00:20Z]

Mask with no start or end dates

Java
JSON
Full JSON
Python
MaskTimestampSetByTimeRange function = new MaskTimestampSetByTimeRange();
{
  "class" : "MaskTimestampSetByTimeRange",
  "timeUnit" : "MILLISECOND"
}
{
  "class" : "uk.gov.gchq.gaffer.time.function.MaskTimestampSetByTimeRange",
  "timeUnit" : "MILLISECOND"
}
g.MaskTimestampSetByTimeRange( 
  time_unit="MILLISECOND" 
)

Input type:

uk.gov.gchq.gaffer.time.RBMBackedTimestampSet

Example inputs:

Input TypeInputResult TypeResult
uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]

Mask with time unit

Java
JSON
Full JSON
Python
MaskTimestampSetByTimeRange function = new MaskTimestampSetByTimeRange(10L, 25L, TimeUnit.SECOND);
{
  "class" : "MaskTimestampSetByTimeRange",
  "startTime" : 10,
  "endTime" : 25,
  "timeUnit" : "SECOND"
}
{
  "class" : "uk.gov.gchq.gaffer.time.function.MaskTimestampSetByTimeRange",
  "startTime" : 10,
  "endTime" : 25,
  "timeUnit" : "SECOND"
}
g.MaskTimestampSetByTimeRange( 
  start_time=10, 
  end_time=25, 
  time_unit="SECOND" 
)

Input type:

uk.gov.gchq.gaffer.time.RBMBackedTimestampSet

Example inputs:

Input TypeInputResult TypeResult
uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:00Z,1970-01-01T00:00:10Z,1970-01-01T00:00:20Z,1970-01-01T00:00:30Z]uk.gov.gchq.gaffer.time.RBMBackedTimestampSetRBMBackedTimestampSet[timeBucket=SECOND,timestamps=1970-01-01T00:00:10Z,1970-01-01T00:00:20Z]

results matching ""

    No results matching ""