valueOf
public static DataSegmentUtils.SegmentIdentifierParts valueOf(String dataSource,
String identifier)
Parses a segment identifier into its components: dataSource, interval, version, and any trailing tags. Ignores
shard spec.
It is possible that this method may incorrectly parse an identifier, for example if the dataSource name in the
identifier contains a DateTime parseable string such as 'datasource_2000-01-01T00:00:00.000Z' and dataSource was
provided as 'datasource'. The desired behavior in this case would be to return null since the identifier does not
actually belong to the provided dataSource but a non-null result would be returned. This is an edge case that would
currently only affect paged select queries with a union dataSource of two similarly-named dataSources as in the
given example.
- Parameters:
dataSource
- the dataSource corresponding to this identifier
identifier
- segment identifier
- Returns:
- a
DataSegmentUtils.SegmentIdentifierParts
object if the identifier could be parsed, null otherwise