Пример #1
0
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
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),
	})
}