|
|
@ -39,24 +39,12 @@ func (rtb *RecordTypeBuilder) SetField(name string, scalarType *schema_pb.Type) |
|
|
|
return rtb |
|
|
|
} |
|
|
|
|
|
|
|
func (rtb *RecordTypeBuilder) SetBoolField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeBoolean) |
|
|
|
} |
|
|
|
func (rtb *RecordTypeBuilder) SetIntegerField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeInteger) |
|
|
|
} |
|
|
|
func (rtb *RecordTypeBuilder) SetLongField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeLong) |
|
|
|
} |
|
|
|
func (rtb *RecordTypeBuilder) SetFloatField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeFloat) |
|
|
|
} |
|
|
|
func (rtb *RecordTypeBuilder) SetDoubleField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeDouble) |
|
|
|
} |
|
|
|
func (rtb *RecordTypeBuilder) SetBytesField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeBytes) |
|
|
|
} |
|
|
|
func (rtb *RecordTypeBuilder) SetStringField(name string) *RecordTypeBuilder { |
|
|
|
return rtb.SetField(name, TypeString) |
|
|
|
} |
|
|
@ -77,6 +65,6 @@ func (rtb *RecordTypeBuilder) SetListField(name string, elementType *schema_pb.T |
|
|
|
return rtb |
|
|
|
} |
|
|
|
|
|
|
|
func List(elementType *schema_pb.Type) *schema_pb.Type { |
|
|
|
func ListOf(elementType *schema_pb.Type) *schema_pb.Type { |
|
|
|
return &schema_pb.Type{Kind: &schema_pb.Type_ListType{ListType: &schema_pb.ListType{ElementType: elementType}}} |
|
|
|
} |