示例#1
0
文件: ttypes.go 项目: sundy-li/hive
func NewHiveServerException() *HiveServerException {
	output := &HiveServerException{
		TStruct: thrift.NewTStruct("HiveServerException", []thrift.TField{
			thrift.NewTField("message", thrift.STRING, 1),
			thrift.NewTField("errorCode", thrift.I32, 2),
			thrift.NewTField("SQLState", thrift.STRING, 3),
		}),
	}
	{
	}
	return output
}
示例#2
0
文件: ttypes.go 项目: sundy-li/hive
func NewHiveClusterStatus() *HiveClusterStatus {
	output := &HiveClusterStatus{
		TStruct: thrift.NewTStruct("HiveClusterStatus", []thrift.TField{
			thrift.NewTField("taskTrackers", thrift.I32, 1),
			thrift.NewTField("mapTasks", thrift.I32, 2),
			thrift.NewTField("reduceTasks", thrift.I32, 3),
			thrift.NewTField("maxMapTasks", thrift.I32, 4),
			thrift.NewTField("maxReduceTasks", thrift.I32, 5),
			thrift.NewTField("state", thrift.I32, 6),
		}),
	}
	{
	}
	return output
}