Package com.c12e.cortex.profiles.reader
Interface CortexSparkReader
-
- All Known Implementing Classes:
DefaultCortexSparkReader
public interface CortexSparkReader
Interface to Cortex dataset readers. Each writer retrieves a resource specific builder to create a context for reading the dataset from an entity specific location.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CortexConnectionReader
connection(com.c12e.cortex.phoenix.Connection connection)
Read a dataset from a Cortex ConnectionCortexConnectionReader
connection(java.lang.String project, java.lang.String connectionName)
Read a dataset from a Cortex ConnectionCortexDataSourceReader
dataSource(com.c12e.cortex.phoenix.DataSource dataSource)
Read a dataset from a Cortex DataSourceCortexDataSourceReader
dataSource(java.lang.String project, java.lang.String dataSourceName)
Read a dataset from a Cortex DataSourceCortexProfileReader
profile(com.c12e.cortex.phoenix.ProfileSchema profileSchema)
Read a dataset from a Cortex ProfileSchemaCortexProfileReader
profile(java.lang.String project, java.lang.String profileSchemaName)
Read a dataset from a Cortex ProfileSchema
-
-
-
Method Detail
-
connection
CortexConnectionReader connection(java.lang.String project, java.lang.String connectionName)
Read a dataset from a Cortex Connection- Parameters:
project
- the name of the projectconnectionName
- the name of the Connection within the project- Returns:
- The connection reader builder
- See Also:
Connection
-
connection
CortexConnectionReader connection(com.c12e.cortex.phoenix.Connection connection)
Read a dataset from a Cortex Connection- Parameters:
connection
- the Connection to read from- Returns:
- The connection reader builder
- See Also:
Connection
-
dataSource
CortexDataSourceReader dataSource(java.lang.String project, java.lang.String dataSourceName)
Read a dataset from a Cortex DataSource- Parameters:
project
- the name of the projectdataSourceName
- the name of the DataSource within the project- Returns:
- The data source reader builder
- See Also:
DataSource
-
dataSource
CortexDataSourceReader dataSource(com.c12e.cortex.phoenix.DataSource dataSource)
Read a dataset from a Cortex DataSource- Parameters:
dataSource
- the DataSource to read from- Returns:
- The data source reader builder
- See Also:
DataSource
-
profile
CortexProfileReader profile(java.lang.String project, java.lang.String profileSchemaName)
Read a dataset from a Cortex ProfileSchema- Parameters:
project
- the name of the projectprofileSchemaName
- the name of the ProfileSchema within the project- Returns:
- The profile schema reader builder
- See Also:
ProfileSchema
-
profile
CortexProfileReader profile(com.c12e.cortex.phoenix.ProfileSchema profileSchema)
Read a dataset from a Cortex ProfileSchema- Parameters:
profileSchema
- the ProfileSchema to reade from- Returns:
- The profile schema reader builder
- See Also:
ProfileSchema
-
-