Page Summary
-
DataSourcesRequest.Builder is used to create new DataSourceRequests.
-
The builder has methods to set the desired data source types and data types to search for.
-
The build() method finishes building and returns the DataSourcesRequest, throwing an exception if not enough data is provided.
Builder used to create new DataSourceRequests.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| DataSourcesRequest |
build()
Finishes building and returns the request.
|
| DataSourcesRequest.Builder |
setDataSourceTypes(int... dataSourceTypes)
Sets the data source types that should be searched for in the data sources
request.
|
| DataSourcesRequest.Builder |
setDataTypes(DataType...
dataTypes)
Sets the desired data types to search for on the data sources request.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public DataSourcesRequest build ()
Finishes building and returns the request.
Throws
| IllegalStateException | If the builder doesn't have enough data to build a valid request |
|---|
public DataSourcesRequest.Builder setDataSourceTypes (int... dataSourceTypes)
Sets the data source types that should be searched for in the data sources request. By default the data sources request will search for all source types. Use this method if you'd like to restrict the search to only raw or only derived data sources. Calling this method multiple times will override the previous calls.
Parameters
| dataSourceTypes | A varargs array representing the types of data sources that you're searching
for. Each can be specified as one of the type constants from DataSource. |
|---|