Interface DataSource<NativeQueryType, NativeResultType>

Type Parameters:
NativeQueryType - the native query representation used by the source
NativeResultType - the native result representation returned by the source
All Superinterfaces:
QueryableData
All Known Implementing Classes:
AbstractDataSource, MongoDBDataSource, SPARQLDataSource, SQLDataSource, WebAPIDataSource

public interface DataSource<NativeQueryType, NativeResultType> extends QueryableData
Represents a queryable data source backing a view.
  • Method Details

    • getViewParameters

      ViewParameters<NativeQueryType> getViewParameters(Predicate p)
      Returns the parameters used to query the supplied predicate from this source.
      Parameters:
      p - the predicate exposed by the data source
      Returns:
      the parameters needed to query the predicate
    • getName

      Optional<String> getName()
      Returns the optional user-facing name of this data source.
      Returns:
      the data source name, when defined
    • setName

      void setName(String name)
      Sets the user-facing name of this data source.
      Parameters:
      name - the name to assign to the data source