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, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAvailableIntervals, getAvailableIntervals, getDataSourceNames, getDataSourceNamespublic 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 AvailabilitygetAvailableIntervals in class BaseMetadataAvailabilityignoredConstraint - 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 BaseMetadataAvailabilityCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.