码迷,mamicode.com
首页 >  
搜索关键字:convert standalone    ( 5511个结果
C#通用类型转换 Convert.ChangeType 转自网络
static public object ChangeType(object value, Type type) { if (value == null && type.IsGenericType) return Activator.CreateInstance(...
分类:其他好文   时间:2014-06-28 18:28:53    阅读次数:212
总结CONVERT的使用
前端时间,执行写好的SQL时,出现了"从char数据类型到datetime数据类型的转换导致datetime值越界"。经过自己的折腾,发现数据表中的WarningTime为NULL,所以这里的转化就出现了问题,同时在此测试了一下不为datetime的char类型的数据进行CONVERT时,也会报错....
分类:其他好文   时间:2014-06-28 14:42:40    阅读次数:274
Spark Standalone模式环境搭建
前提:安装好jdk1.7,hadoop安装步骤:1、安装scala下载地址:http://www.scala-lang.org/download/配置环境变量:export SCALA_HOME=/..../scalaexport PATH=.:$SCALA_HOME/bin ....验证:sca....
分类:其他好文   时间:2014-06-28 14:08:09    阅读次数:404
js+json+webservice(List<>作为参数)
client端:function Save(){ var data_temp = convert_To_Json(checkbox_selected()); //alert(data_temp); $.ajax({ type: "post", ...
分类:Web程序   时间:2014-06-23 06:10:35    阅读次数:294
leetcode - Convert Sorted Array to Binary Search Tree
题目:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.个人思路:1、选...
分类:其他好文   时间:2014-06-21 06:37:00    阅读次数:183
[LeetCode] Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.说明:平衡二叉搜索树,即任何结点的左子树和右子树高度最多相差1的二叉搜索树。二叉搜索树:二叉查找树(Bin...
分类:其他好文   时间:2014-06-21 00:47:08    阅读次数:221
C# (int)、Parse() 和 Convert
(int)和Int32.Parse(),Convert.ToInt32()三者的应用举几个例子:例子一:longlongType=100; intintType=longType;//错误,需要使用显式强制转换 intintType=(int)longType;//正确,使用了显式强制转换例子二:s...
分类:其他好文   时间:2014-06-21 00:25:47    阅读次数:252
开发各类小技巧
//此方法能得到你想要的小数点后位数double percent=Convert.ToDouble(2)/Convert.ToDouble(34);string result=string.Format("{0:0.00%}",percent);//得到5.88%string result=stri...
分类:其他好文   时间:2014-06-20 18:05:35    阅读次数:195
sql server 更新表,每天的数据分固定批次设置批次号sql
按表中的字段 UpdateTime 按每天进行编号,每天的编号都从1开始编号,并附带表的主键 cid,把数据存入临时表中WITH temp AS (SELECT cid,updatetime, ROW_NUMBER() OVER (PARTITION BY CONVERT(varchar(10),....
分类:数据库   时间:2014-06-20 16:37:46    阅读次数:221
Apache Spark源码走读之15 -- Standalone部署模式下的容错性分析
本文就standalone部署方式下的容错性问题做比较细致的分析,主要回答standalone部署方式下的包含哪些主要节点,当某一类节点出现问题时,系统是如何处理的。组成cluster的不同节点,启动时有没有固定的顺序,为什么是这样的顺序,针对这些问题,本文会做一个详尽的分析。
分类:其他好文   时间:2014-06-18 00:10:53    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!