Ejemplo n.º 1
0
func (p *HiveClusterStatus) ReadField6(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v10, err11 := iprot.ReadI32()
	if err11 != nil {
		return thrift.NewTProtocolExceptionReadField(6, "state", p.ThriftName(), err11)
	}
	p.State = JobTrackerState(v10)
	return err
}
Ejemplo n.º 2
0
func (p *HiveServerException) ReadField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v14, err15 := iprot.ReadI32()
	if err15 != nil {
		return thrift.NewTProtocolExceptionReadField(2, "errorCode", p.ThriftName(), err15)
	}
	p.ErrorCode = v14
	return err
}
Ejemplo n.º 3
0
func (p *HiveClusterStatus) ReadField5(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v8, err9 := iprot.ReadI32()
	if err9 != nil {
		return thrift.NewTProtocolExceptionReadField(5, "maxReduceTasks", p.ThriftName(), err9)
	}
	p.MaxReduceTasks = v8
	return err
}
Ejemplo n.º 4
0
func (p *HiveClusterStatus) ReadField4(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v6, err7 := iprot.ReadI32()
	if err7 != nil {
		return thrift.NewTProtocolExceptionReadField(4, "maxMapTasks", p.ThriftName(), err7)
	}
	p.MaxMapTasks = v6
	return err
}
Ejemplo n.º 5
0
func (p *HiveClusterStatus) ReadField3(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v4, err5 := iprot.ReadI32()
	if err5 != nil {
		return thrift.NewTProtocolExceptionReadField(3, "reduceTasks", p.ThriftName(), err5)
	}
	p.ReduceTasks = v4
	return err
}
Ejemplo n.º 6
0
func (p *HiveClusterStatus) ReadField2(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v2, err3 := iprot.ReadI32()
	if err3 != nil {
		return thrift.NewTProtocolExceptionReadField(2, "mapTasks", p.ThriftName(), err3)
	}
	p.MapTasks = v2
	return err
}
Ejemplo n.º 7
0
func (p *HiveClusterStatus) ReadField1(iprot thrift.TProtocol) (err thrift.TProtocolException) {
	v0, err1 := iprot.ReadI32()
	if err1 != nil {
		return thrift.NewTProtocolExceptionReadField(1, "taskTrackers", p.ThriftName(), err1)
	}
	p.TaskTrackers = v0
	return err
}