Class DefaultCortexProfileReader.CortexReadParameters
- java.lang.Object
-
- com.c12e.cortex.profiles.module.profile.DefaultCortexProfileReader.CortexReadParameters
-
- All Implemented Interfaces:
CortexReader<io.delta.tables.DeltaTable,CortexProfileReader>
,CortexProfileReader
- Enclosing class:
- DefaultCortexProfileReader
public class DefaultCortexProfileReader.CortexReadParameters extends java.lang.Object implements CortexProfileReader
-
-
Field Summary
Fields Modifier and Type Field Description protected com.c12e.cortex.phoenix.ProfileSchema
profileSchema
protected java.lang.String
profileSchemaName
protected java.lang.String
project
protected SparkOptionsHandler
sparkOptionsHandler
-
Constructor Summary
Constructors Constructor Description CortexReadParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.delta.tables.DeltaTable
load()
Completes building and begins read processCortexProfileReader
option(java.lang.String key, java.lang.String value)
Overwrites value at keyCortexProfileReader
options(java.util.Map<java.lang.String,java.lang.String> readOptions)
Merges new options with current optionsCortexProfileReader
project(java.lang.String project)
Sets the projectCortexProfileReader
resourceName(java.lang.String resourceName)
Sets the resource to write toCortexProfileReader
withProfileSchema(com.c12e.cortex.phoenix.ProfileSchema profileSchema)
\ The ProfileSchema to reader
-
-
-
Field Detail
-
project
protected java.lang.String project
-
profileSchemaName
protected java.lang.String profileSchemaName
-
profileSchema
protected com.c12e.cortex.phoenix.ProfileSchema profileSchema
-
sparkOptionsHandler
protected SparkOptionsHandler sparkOptionsHandler
-
-
Method Detail
-
resourceName
public CortexProfileReader resourceName(java.lang.String resourceName)
Description copied from interface:CortexReader
Sets the resource to write to- Specified by:
resourceName
in interfaceCortexReader<io.delta.tables.DeltaTable,CortexProfileReader>
- Returns:
- this instance
-
options
public CortexProfileReader options(java.util.Map<java.lang.String,java.lang.String> readOptions)
Description copied from interface:CortexReader
Merges new options with current options- Specified by:
options
in interfaceCortexReader<io.delta.tables.DeltaTable,CortexProfileReader>
- Returns:
- this instance
-
option
public CortexProfileReader option(java.lang.String key, java.lang.String value)
Description copied from interface:CortexReader
Overwrites value at key- Specified by:
option
in interfaceCortexReader<io.delta.tables.DeltaTable,CortexProfileReader>
- Returns:
- this instance
-
project
public CortexProfileReader project(java.lang.String project)
Description copied from interface:CortexReader
Sets the project- Specified by:
project
in interfaceCortexReader<io.delta.tables.DeltaTable,CortexProfileReader>
- Returns:
- this instance
-
load
public io.delta.tables.DeltaTable load()
Description copied from interface:CortexReader
Completes building and begins read process- Specified by:
load
in interfaceCortexReader<io.delta.tables.DeltaTable,CortexProfileReader>
-
withProfileSchema
public CortexProfileReader withProfileSchema(com.c12e.cortex.phoenix.ProfileSchema profileSchema)
Description copied from interface:CortexProfileReader
\ The ProfileSchema to reader- Specified by:
withProfileSchema
in interfaceCortexProfileReader
- Returns:
- this instance
-
-