|
@ -23,11 +23,11 @@ const ( |
|
|
type ScalarType int32 |
|
|
type ScalarType int32 |
|
|
|
|
|
|
|
|
const ( |
|
|
const ( |
|
|
ScalarType_BOOLEAN ScalarType = 0 |
|
|
|
|
|
ScalarType_INTEGER ScalarType = 1 |
|
|
|
|
|
ScalarType_LONG ScalarType = 3 |
|
|
|
|
|
ScalarType_FLOAT ScalarType = 4 |
|
|
|
|
|
ScalarType_DOUBLE ScalarType = 5 |
|
|
|
|
|
|
|
|
ScalarType_BOOL ScalarType = 0 |
|
|
|
|
|
ScalarType_INT32 ScalarType = 1 |
|
|
|
|
|
ScalarType_INT64 ScalarType = 3 |
|
|
|
|
|
ScalarType_FLOAT32 ScalarType = 4 |
|
|
|
|
|
ScalarType_FLOAT64 ScalarType = 5 |
|
|
ScalarType_BYTES ScalarType = 6 |
|
|
ScalarType_BYTES ScalarType = 6 |
|
|
ScalarType_STRING ScalarType = 7 |
|
|
ScalarType_STRING ScalarType = 7 |
|
|
) |
|
|
) |
|
@ -35,20 +35,20 @@ const ( |
|
|
// Enum value maps for ScalarType.
|
|
|
// Enum value maps for ScalarType.
|
|
|
var ( |
|
|
var ( |
|
|
ScalarType_name = map[int32]string{ |
|
|
ScalarType_name = map[int32]string{ |
|
|
0: "BOOLEAN", |
|
|
|
|
|
1: "INTEGER", |
|
|
|
|
|
3: "LONG", |
|
|
|
|
|
4: "FLOAT", |
|
|
|
|
|
5: "DOUBLE", |
|
|
|
|
|
|
|
|
0: "BOOL", |
|
|
|
|
|
1: "INT32", |
|
|
|
|
|
3: "INT64", |
|
|
|
|
|
4: "FLOAT32", |
|
|
|
|
|
5: "FLOAT64", |
|
|
6: "BYTES", |
|
|
6: "BYTES", |
|
|
7: "STRING", |
|
|
7: "STRING", |
|
|
} |
|
|
} |
|
|
ScalarType_value = map[string]int32{ |
|
|
ScalarType_value = map[string]int32{ |
|
|
"BOOLEAN": 0, |
|
|
|
|
|
"INTEGER": 1, |
|
|
|
|
|
"LONG": 3, |
|
|
|
|
|
"FLOAT": 4, |
|
|
|
|
|
"DOUBLE": 5, |
|
|
|
|
|
|
|
|
"BOOL": 0, |
|
|
|
|
|
"INT32": 1, |
|
|
|
|
|
"INT64": 3, |
|
|
|
|
|
"FLOAT32": 4, |
|
|
|
|
|
"FLOAT64": 5, |
|
|
"BYTES": 6, |
|
|
"BYTES": 6, |
|
|
"STRING": 7, |
|
|
"STRING": 7, |
|
|
} |
|
|
} |
|
@ -263,7 +263,7 @@ func (x *Type) GetScalarType() ScalarType { |
|
|
if x, ok := x.GetKind().(*Type_ScalarType); ok { |
|
|
if x, ok := x.GetKind().(*Type_ScalarType); ok { |
|
|
return x.ScalarType |
|
|
return x.ScalarType |
|
|
} |
|
|
} |
|
|
return ScalarType_BOOLEAN |
|
|
|
|
|
|
|
|
return ScalarType_BOOL |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (x *Type) GetRecordType() *RecordType { |
|
|
func (x *Type) GetRecordType() *RecordType { |
|
@ -695,17 +695,17 @@ var file_schema_proto_rawDesc = []byte{ |
|
|
0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x35, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, |
|
|
0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x35, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, |
|
|
0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, |
|
|
0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, |
|
|
0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, |
|
|
0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, 0x2e, |
|
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x5e, 0x0a, |
|
|
|
|
|
0x0a, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, |
|
|
|
|
|
0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x54, 0x45, |
|
|
|
|
|
0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x4f, 0x4e, 0x47, 0x10, 0x03, 0x12, |
|
|
|
|
|
0x09, 0x0a, 0x05, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, |
|
|
|
|
|
0x55, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, |
|
|
|
|
|
0x06, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x42, 0x32, 0x5a, |
|
|
|
|
|
0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, |
|
|
|
|
|
0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, |
|
|
|
|
|
0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, |
|
|
|
|
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
|
|
|
|
|
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x5d, 0x0a, |
|
|
|
|
|
0x0a, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x42, |
|
|
|
|
|
0x4f, 0x4f, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x01, |
|
|
|
|
|
0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x46, |
|
|
|
|
|
0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, |
|
|
|
|
|
0x54, 0x36, 0x34, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x06, |
|
|
|
|
|
0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x07, 0x42, 0x32, 0x5a, 0x30, |
|
|
|
|
|
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, |
|
|
|
|
|
0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, |
|
|
|
|
|
0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x62, |
|
|
|
|
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var ( |
|
|
var ( |
|
|