Exemplo n.º 1
0
 internal DataFrameIpcProxy(JvmObjectReference jvmDataFrameReference, ISqlContextProxy sqlProxy)
 {
     this.jvmDataFrameReference = jvmDataFrameReference;
     sqlContextProxy            = sqlProxy;
     na   = new DataFrameNaFunctions(jvmDataFrameReference);
     stat = new DataFrameStatFunctions(jvmDataFrameReference);
 }
Exemplo n.º 2
0
 internal SqlContext(SparkContext sparkContext, ISqlContextProxy sqlContextProxy)
 {
     this.sparkContext    = sparkContext;
     this.sqlContextProxy = sqlContextProxy;
     if (instance == null)
     {
         instance = this;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a SqlContext
 /// </summary>
 /// <param name="sparkContext"></param>
 public SqlContext(SparkContext sparkContext)
 {
     this.sparkContext = sparkContext;
     sqlContextProxy   = sparkContext.SparkContextProxy.CreateSqlContext();
     if (instance == null)
     {
         instance = this;
     }
 }
Exemplo n.º 4
0
 internal SqlContext(SparkSession sparkSession, bool isRootContext)
 {
     this.sparkSession    = sparkSession;
     this.sparkContext    = sparkSession.SparkContext;
     this.sqlContextProxy = sparkSession.SparkSessionProxy.SqlContextProxy;
     this.isRootContext   = isRootContext;
     if (instance == null)
     {
         instance = this;
     }
 }
Exemplo n.º 5
0
 internal DataFrameNaFunctionsIpcProxy(JvmObjectReference jvmDataFrameNaFunctionsReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmDataFrameNaFunctionsReference = jvmDataFrameNaFunctionsReference;
     this.sqlContextProxy = sqlContextProxy;
 }
Exemplo n.º 6
0
 internal DatasetIpcProxy(JvmObjectReference jvmDatasetReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmDatasetReference = jvmDatasetReference;
     this.sqlContextProxy = sqlContextProxy;
 }
Exemplo n.º 7
0
 internal DatasetIpcProxy(JvmObjectReference jvmDatasetReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmDatasetReference = jvmDatasetReference;
     this.sqlContextProxy     = sqlContextProxy;
 }
Exemplo n.º 8
0
 public SqlContext(SparkContext sparkContext)
 {
     this.sparkContext = sparkContext;
     sqlContextProxy   = sparkContext.SparkContextProxy.CreateSqlContext();
 }
Exemplo n.º 9
0
 internal HiveContext(SparkContext sparkContext, ISqlContextProxy sqlContextProxy)
     : base(sparkContext, sqlContextProxy)
 {
 }
Exemplo n.º 10
0
 internal CatalogIpcProxy(JvmObjectReference jvmCatalogReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmCatalogReference = jvmCatalogReference;
     this.sqlContextProxy     = sqlContextProxy;
 }
Exemplo n.º 11
0
 internal DataFrameReaderIpcProxy(JvmObjectReference jvmDataFrameReaderReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmDataFrameReaderReference = jvmDataFrameReaderReference;
     this.sqlContextProxy             = sqlContextProxy;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Creates a SqlContext
 /// </summary>
 /// <param name="sparkContext"></param>
 public SqlContext(SparkContext sparkContext) : this(new SparkSession(sparkContext))
 {
     sqlContextProxy   = sparkSession.SparkSessionProxy.SqlContextProxy;
     this.sparkContext = sparkContext;
 }
Exemplo n.º 13
0
 internal CatalogIpcProxy(JvmObjectReference jvmCatalogReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmCatalogReference = jvmCatalogReference;
     this.sqlContextProxy = sqlContextProxy;
 }
Exemplo n.º 14
0
 public MockDataFrameReaderProxy(ISqlContextProxy sqlContextProxy)
 {
     mockSqlContextProxy = sqlContextProxy;
 }
Exemplo n.º 15
0
 internal SparkSessionIpcProxy(JvmObjectReference jvmSparkSessionReference)
 {
     this.jvmSparkSessionReference = jvmSparkSessionReference;
     sqlContextProxy = new SqlContextIpcProxy(GetSqlContextReference());
 }
Exemplo n.º 16
0
 internal HiveContext(SparkContext sparkContext, ISqlContextProxy sqlContextProxy)
     : base(sparkContext, sqlContextProxy)
 {
 }
Exemplo n.º 17
0
 internal GroupedDataIpcProxy(JvmObjectReference gdRef, ISqlContextProxy sccProxy)
 {
     scalaGroupedDataReference = gdRef;
     scalaSqlContextReference  = sccProxy;
 }
Exemplo n.º 18
0
 internal SparkSessionIpcProxy(JvmObjectReference jvmSparkSessionReference)
 {
     this.jvmSparkSessionReference = jvmSparkSessionReference;
     sqlContextProxy = new SqlContextIpcProxy(GetSqlContextReference());
 }
Exemplo n.º 19
0
 internal DataFrameReaderIpcProxy(JvmObjectReference jvmDataFrameReaderReference, ISqlContextProxy sqlContextProxy)
 {
     this.jvmDataFrameReaderReference = jvmDataFrameReaderReference;
     this.sqlContextProxy = sqlContextProxy;
 }
Exemplo n.º 20
0
 public MockDataFrameReaderProxy(ISqlContextProxy sqlContextProxy)
 {
     mockSqlContextProxy = sqlContextProxy;
 }
Exemplo n.º 21
0
 //just saving the parameter collection to mock the proxy reference that will be used in Assert statements
 internal MockDataFrameProxy(object[] parameterCollection, ISqlContextProxy scProxy)
 {
     mockDataFrameReference = parameterCollection;
     mockSqlContextProxy = scProxy;
 }
Exemplo n.º 22
0
 //just saving the parameter collection to mock the proxy reference that will be used in Assert statements
 internal MockDataFrameProxy(object[] parameterCollection, ISqlContextProxy scProxy)
 {
     mockDataFrameReference = parameterCollection;
     mockSqlContextProxy    = scProxy;
 }
Exemplo n.º 23
0
 internal UdfRegistrationIpcProxy(ISqlContextProxy sqlContextProxy)
 {
     this.sqlContextProxy = sqlContextProxy;
 }