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 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 project
        connectionName - 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 project
        dataSourceName - 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 project
        profileSchemaName - 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