public abstract class DataSource extends Object
Constructor and Description |
---|
DataSource(DataSourceType type,
ConstrainedTable physicalTable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getNames()
Returns a set of identifiers used by Fili to identify this data source's physical tables.
|
ConstrainedTable |
getPhysicalTable()
Get the data source physical table.
|
Set<ConstrainedTable> |
getPhysicalTables()
Deprecated.
DataSources can only have a single table, and any unioning semantics is done at the PhysicalTable
level
|
Optional<? extends DruidQuery<?>> |
getQuery()
Get the query that defines the data source.
|
DataSourceType |
getType() |
public DataSource(DataSourceType type, ConstrainedTable physicalTable)
type
- Type of the data sourcephysicalTable
- PhysicalTables pointed to by the DataSourcepublic DataSourceType getType()
@Deprecated public Set<ConstrainedTable> getPhysicalTables()
public ConstrainedTable getPhysicalTable()
public Set<String> getNames()
public Optional<? extends DruidQuery<?>> getQuery()
May be empty if the data source does not have a query.
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.