Exemplo n.º 1
0
        public IDataFrameProxy Agg(IGroupedDataProxy scalaGroupedDataReference, Dictionary <string, string> columnNameAggFunctionDictionary)
        {
            var mapReference = new JvmObjectReference(SparkCLRIpcProxy.JvmBridge.CallConstructor("java.util.HashMap").ToString());

            foreach (var key in columnNameAggFunctionDictionary.Keys)
            {
                SparkCLRIpcProxy.JvmBridge.CallNonStaticJavaMethod(mapReference, "put", new object[] { key, columnNameAggFunctionDictionary[key] });
            }
            return
                (new DataFrameIpcProxy(new JvmObjectReference(
                                           SparkCLRIpcProxy.JvmBridge.CallNonStaticJavaMethod(
                                               (scalaGroupedDataReference as GroupedDataIpcProxy).ScalaGroupedDataReference, "agg", new object[] { mapReference }).ToString()), sqlContextProxy));
        }
Exemplo n.º 2
0
 public IDataFrameProxy Agg(IGroupedDataProxy scalaGroupedDataReference, System.Collections.Generic.Dictionary <string, string> columnNameAggFunctionDictionary)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 internal GroupedData(IGroupedDataProxy groupedDataProxy, DataFrame dataFrame)
 {
     this.groupedDataProxy = groupedDataProxy;
     this.dataFrame        = dataFrame;
 }
Exemplo n.º 4
0
 public IDataFrameProxy Agg(IGroupedDataProxy scalaGroupedDataReference, System.Collections.Generic.Dictionary<string, string> columnNameAggFunctionDictionary)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public IDataFrameProxy Agg(IGroupedDataProxy scalaGroupedDataReference, Dictionary<string, string> columnNameAggFunctionDictionary)
 {
     var mapReference = new JvmObjectReference(SparkCLRIpcProxy.JvmBridge.CallConstructor("java.util.HashMap").ToString());
     foreach (var key in columnNameAggFunctionDictionary.Keys)
     {
         SparkCLRIpcProxy.JvmBridge.CallNonStaticJavaMethod(mapReference, "put", new object[] { key, columnNameAggFunctionDictionary[key]});
     }
     return
         new DataFrameIpcProxy(new JvmObjectReference(
             SparkCLRIpcProxy.JvmBridge.CallNonStaticJavaMethod(
                 (scalaGroupedDataReference as GroupedDataIpcProxy).ScalaGroupedDataReference, "agg", new object[] { mapReference }).ToString()), sqlContextProxy);
 }
Exemplo n.º 6
0
 internal GroupedData(IGroupedDataProxy groupedDataProxy, DataFrame dataFrame)
 {
     this.groupedDataProxy = groupedDataProxy;
     this.dataFrame = dataFrame;
 }