public class PermissiveAvailability extends BaseMetadataAvailability
Constructor and Description |
---|
PermissiveAvailability(DataSourceName dataSourceName,
DataSourceMetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SimplifiedIntervalList |
getAvailableIntervals(PhysicalDataSourceConstraint ignoredConstraint)
Returns union of all available intervals.
|
String |
toString() |
equals, getAllAvailableIntervals, getDataSourceMetadataService, getDataSourceName, getDataSourceNames, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAvailableIntervals, getAvailableIntervals, getDataSourceNames, getDataSourceNames
public PermissiveAvailability(@NotNull DataSourceName dataSourceName, @NotNull DataSourceMetadataService metadataService)
dataSourceName
- The name of the data source associated with this AvailabilitymetadataService
- A service containing the data source segment datapublic SimplifiedIntervalList getAvailableIntervals(PhysicalDataSourceConstraint ignoredConstraint)
This is different from its parent's
StrictAvailability.getAvailableIntervals(
PhysicalDataSourceConstraint
)
;
Instead of returning the intersection of all available intervals, this method returns the union of them.
getAvailableIntervals
in interface Availability
getAvailableIntervals
in class BaseMetadataAvailability
ignoredConstraint
- Constrains are ignored, because PermissiveAvailability returns as many
available intervals as possible by, for example, allowing missing intervals and returning unions of available
intervalspublic String toString()
toString
in class BaseMetadataAvailability
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.