public class DataSourceMetadata extends Object
Constructor and Description |
---|
DataSourceMetadata(String name,
Map<String,String> properties,
List<io.druid.timeline.DataSegment> segments)
Store the full metadata for a druid data source, mainly as a list of segments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Map<Columns,Map<String,SimplifiedIntervalList>> |
getIntervalLists(DataSourceMetadata metadata)
Return a pair of maps containing the simplified intervals for dimensions and metrics respectively.
|
String |
getName()
Get the name of this datasource.
|
Map<String,String> |
getProperties()
Get the properties of the datasource.
|
static Map<Columns,Map<String,com.google.common.collect.RangeSet<org.joda.time.DateTime>>> |
getRangeLists(DataSourceMetadata metadata)
Return a pair of maps containing the ranges of availability for dimensions and metrics respectively.
|
List<io.druid.timeline.DataSegment> |
getSegments()
Get the segments of the datasource.
|
int |
hashCode() |
public DataSourceMetadata(String name, Map<String,String> properties, List<io.druid.timeline.DataSegment> segments)
name
- The name of the druid datasource.properties
- The map of properties of this datasource.segments
- The list of segments of this datasource.public String getName()
public Map<String,String> getProperties()
public List<io.druid.timeline.DataSegment> getSegments()
public static Map<Columns,Map<String,SimplifiedIntervalList>> getIntervalLists(DataSourceMetadata metadata)
metadata
- The metadata that contain segment availability.public static Map<Columns,Map<String,com.google.common.collect.RangeSet<org.joda.time.DateTime>>> getRangeLists(DataSourceMetadata metadata)
metadata
- The metadata that contain segment availability.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.