| /** |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| namespace java org.apache.parquet.thrift.test |
| struct TestListsInMap { |
| 1: string name, |
| 2: map<list<string>,list<string>> names, |
| } |
| |
| struct Name { |
| 1: required string first_name, |
| 2: optional string last_name |
| } |
| |
| struct Address { |
| 1: string street, |
| 2: required string zip |
| } |
| |
| struct Phone { |
| 1: string mobile |
| 2: required string work |
| } |
| |
| struct TestPerson { |
| 1: required Name name, |
| 2: optional i32 age, |
| 3: Address address, |
| 4: string info |
| } |
| |
| |
| struct RequiredMapFixture { |
| 1: optional string name, |
| 2: required map<string,string> mavalue |
| } |
| |
| struct RequiredListFixture { |
| 1: optional string info, |
| 2: required list<Name> names |
| } |
| |
| struct RequiredSetFixture { |
| 1: optional string info, |
| 2: required set<Name> names |
| } |
| |
| struct RequiredPrimitiveFixture { |
| 1: required bool test_bool, |
| 2: required byte test_byte, |
| 3: required i16 test_i16, |
| 4: required i32 test_i32, |
| 5: required i64 test_i64, |
| 6: required double test_double, |
| 7: required string test_string, |
| 8: optional string info_string |
| } |
| |
| |
| struct StructWithReorderedOptionalFields { |
| 3: optional i32 fieldThree, |
| 2: optional i32 fieldTwo, |
| 1: optional i32 fieldOne, |
| } |
| |
| struct TestPersonWithRequiredPhone { |
| 1: required Name name, |
| 2: optional i32 age, |
| 3: Address address, |
| 4: string info, |
| 5: required Phone phone |
| } |
| |
| struct StructWithIndexStartsFrom4 { |
| 6: required Phone phone |
| } |
| |
| struct StructWithExtraField { |
| 3: required Phone extraPhone, |
| 6: required Phone phone |
| } |
| |
| struct TestLogicalType { |
| 1: required i16 test_i16 |
| } |