Class DefaultCortexSparkReader

    • Method Detail

      • connection

        public CortexConnectionReader connection​(java.lang.String project,
                                                 java.lang.String connectionName)
        Description copied from interface: CortexSparkReader
        Read a dataset from a Cortex Connection
        Specified by:
        connection in interface CortexSparkReader
        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

        public CortexConnectionReader connection​(com.c12e.cortex.phoenix.Connection connection)
        Description copied from interface: CortexSparkReader
        Read a dataset from a Cortex Connection
        Specified by:
        connection in interface CortexSparkReader
        Parameters:
        connection - the Connection to read from
        Returns:
        The connection reader builder
        See Also:
        Connection
      • dataSource

        public CortexDataSourceReader dataSource​(java.lang.String project,
                                                 java.lang.String dataSourceName)
        Description copied from interface: CortexSparkReader
        Read a dataset from a Cortex DataSource
        Specified by:
        dataSource in interface CortexSparkReader
        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

        public CortexDataSourceReader dataSource​(com.c12e.cortex.phoenix.DataSource dataSource)
        Description copied from interface: CortexSparkReader
        Read a dataset from a Cortex DataSource
        Specified by:
        dataSource in interface CortexSparkReader
        Parameters:
        dataSource - the DataSource to read from
        Returns:
        The data source reader builder
        See Also:
        DataSource
      • profile

        public CortexProfileReader profile​(java.lang.String project,
                                           java.lang.String profileSchemaName)
        Description copied from interface: CortexSparkReader
        Read a dataset from a Cortex ProfileSchema
        Specified by:
        profile in interface CortexSparkReader
        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

        public CortexProfileReader profile​(com.c12e.cortex.phoenix.ProfileSchema profileSchema)
        Description copied from interface: CortexSparkReader
        Read a dataset from a Cortex ProfileSchema
        Specified by:
        profile in interface CortexSparkReader
        Parameters:
        profileSchema - the ProfileSchema to reade from
        Returns:
        The profile schema reader builder
        See Also:
        ProfileSchema