Example #1
0
 internal Field(FB.Field fbField)
 {
     Name       = fbField.Name;
     IsNullable = fbField.Nullable;
     Type       = (ArrowType)(byte)fbField.TypeType;
     FB.KeyValue kv = fbField.CustomMetadata(0).GetValueOrDefault();
 }
Example #2
0
        private void ReadFields(FB.Schema fbSchema)
        {
            for (int i = 0; i < fbSchema.FieldsLength; i++)
            {
                FB.Field field = fbSchema.Fields(i).GetValueOrDefault();

                for (int mi = 0; mi < field.CustomMetadataLength; mi++)
                {
                    FB.KeyValue mkv = field.CustomMetadata(mi).GetValueOrDefault();
                }

                _fields.Add(new Field(field));
            }
        }
Example #3
0
 public static KeyValue GetRootAsKeyValue(ByteBuffer _bb, KeyValue obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }