示例#1
0
文件: ttypes.go 项目: sundy-li/hive
func (p *HiveServerException) TStructFields() thrift.TFieldContainer {
	return thrift.NewTFieldContainer([]thrift.TField{
		thrift.NewTField("message", thrift.STRING, 1),
		thrift.NewTField("errorCode", thrift.I32, 2),
		thrift.NewTField("SQLState", thrift.STRING, 3),
	})
}
示例#2
0
文件: ttypes.go 项目: sundy-li/hive
func (p *HiveClusterStatus) TStructFields() thrift.TFieldContainer {
	return thrift.NewTFieldContainer([]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),
	})
}