Exemple #1
0
func decodeFloatPoint(pb *internal.Point) *FloatPoint {
	return &FloatPoint{
		Name:  pb.GetName(),
		Tags:  newTagsID(pb.GetTags()),
		Time:  pb.GetTime(),
		Nil:   pb.GetNil(),
		Aux:   decodeAux(pb.Aux),
		Value: pb.GetFloatValue(),
	}
}
Exemple #2
0
func decodeStringPoint(pb *internal.Point) *StringPoint {
	return &StringPoint{
		Name:  pb.GetName(),
		Tags:  newTagsID(pb.GetTags()),
		Time:  pb.GetTime(),
		Nil:   pb.GetNil(),
		Aux:   decodeAux(pb.Aux),
		Value: pb.GetStringValue(),
	}
}
Exemple #3
0
func decodeBooleanPoint(pb *internal.Point) *BooleanPoint {
	return &BooleanPoint{
		Name:  pb.GetName(),
		Tags:  newTagsID(pb.GetTags()),
		Time:  pb.GetTime(),
		Nil:   pb.GetNil(),
		Aux:   decodeAux(pb.Aux),
		Value: pb.GetBooleanValue(),
	}
}
Exemple #4
0
func decodeIntegerPoint(pb *internal.Point) *IntegerPoint {
	return &IntegerPoint{
		Name:  pb.GetName(),
		Tags:  newTagsID(pb.GetTags()),
		Time:  pb.GetTime(),
		Nil:   pb.GetNil(),
		Aux:   decodeAux(pb.Aux),
		Value: pb.GetIntegerValue(),
	}
}