Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.data
Interface DataSource

All Known Implementing Classes:
MDXDataSource, Olap4jDataSource, TableDataSource

public interface DataSource

DataSource is the core interface that represents a multidimensional OLAP storage. It defines methods for getting a list of metadata objects from the database (getSchema) and retrieving a new connection for making queries on data (createConnection). The pivot library offers a number of DataSource implementations that allow users to connect to analytical databases using the XML/A protocol, as well as a in-memory storage from tabular data.


Method Summary
 Connection createConnection()
          Returns a new connection to the datasource.
 OlapSchema getSchema()
          Retrieves the schema of the datasource.
 

Method Detail

createConnection

Connection createConnection()
Returns a new connection to the datasource.

Returns:
a new connection to the datasource

getSchema

OlapSchema getSchema()
Retrieves the schema of the datasource. The schema serves as a starting point for getting members and making queries.

Returns:
the datasource's schema

Copyright © 2011 Citra Technologies. All Rights Reserved.