All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rquet.parquet-scrooge_2.10.1.10.1.source-code.test.thrift Maven / Gradle / Ivy

The newest version!
/* 
 * 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> names,
}

struct Name {
  1: required string first_name,
  2: optional string last_name
}

struct Address {
  1: required string street,
  2: required string zip
}

struct AddressWithStreetWithDefaultRequirement {
  1: string street,
  2: required string zip
}

struct Phone {
  1: required 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 mavalue
}

struct RequiredListFixture {
  1: optional string info,
  2: required list names
}

struct RequiredSetFixture {
  1: optional string info,
  2: required set 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 TestPersonWithRequiredPhone {
  1: required Name name,
  2: optional i32 age,
  3: required Address address,
  4: optional string info,
  5: required Phone phone
}

struct TestPersonWithAllInformation {
   1: required Name name,
   2: optional i32 age,
   3: required Address address,
   4: optional Address working_address,
   5: optional string info,
   6: required map phone_map,
   7: optional set interests,
   8: optional list key_words
}

struct TestMapComplex{
  1: required map phone_address_map
}

struct TestMapBinary{
  1: required map string_binary_map
}

struct TestMapPrimitiveKey {
  1: required map short_map,
  2: required map int_map,
  3: required map byt_map,
  4: required map bool_map,
  5: required map long_map,
  6: required map double_map,
  7: required map string_map;
}

struct TestOptionalMap {
   1: optional map short_map,
   2: optional map int_map,
   3: optional map byt_map,
   4: optional map bool_map,
   5: optional map long_map,
   6: optional map double_map,
   7: optional map string_map
}

struct TestListPrimitive {
  1: required list short_list,
  2: required list int_list,
  3: required list long_list,
  4: required list byte_list,
  5: required list string_list,
  6: required list bool_list,
  7: required list double_list,
}

struct TestSetPrimitive {
  1: required set short_list,
  2: required set int_list,
  3: required set long_list,
  4: required set byte_list,
  5: required set string_list,
  6: required set bool_list,
  7: required set double_list
}

struct TestMapPrimitiveValue {
  1: required map short_map,
  2: required map int_map,
  3: required map byt_map,
  4: required map bool_map,
  5: required map long_map,
  6: required map double_map,
  7: required map string_map
}

union TestUnion {
  1: TestPerson first_person
  2: TestMapComplex second_map
}

enum Operation {
  ADD = 1,
  SUBTRACT = 2,
  MULTIPLY = 3,
  DIVIDE = 4
}

struct TestFieldOfEnum{
 1: required Operation op
 2: optional Operation op2
}

struct StringAndBinary {
  1: required string s
  2: required binary b
}

#fixture fox nested structures
struct NestedList {
  1: required list> rll
  2: required list>> rlll
  3: optional list> oll
  4: optional list>> olll
  5: list> ll
  6: list>> lll
}

struct ListNestMap {
  1: required list> rlm
  2: required list>> rllm
  3: optional list> olm
  4: optional list>> ollm
  5: list> lm
  6: list>> llm
}

struct ListNestSet {
   1: required list> rls
   2: required list>> rlls
   3: optional list> ols
   4: optional list>> olls
   5: list> ls
   6: list>> lls
}

struct ListNestEnum {
   1: required list rle
}

struct MapNestMap {
  1: required map, map> rmm
  2: required map, Address>, map> rmmm
  3: optional map, map> omm
  4: optional map, Address>, map> ommm
  5: map, map> mm
  6: map, Address>, map> mmm
}

struct MapNestList {
  1: required map, list
> rml 2: required map>, list>> rmll 3: optional map, list
> oml 4: optional map>, list>> omll 5: map, list
> ml 6: map>, list>> mll } struct MapNestSet { 1: required map, set
> rms 2: required map>, set>> rmss 3: optional map, set
> oms 4: optional map>, set>> omss 5: map, set
> ms 6: map>, set>> mss } struct SetNestSet { 1: required set> rss 2: required set>> rsss 3: optional set> oss 4: optional set>> osss 5: set> ss 6: set>> sss } struct SetNestList { 1: required set> rsl 2: required set>> rssl 3: optional set> osl 4: optional set>> ossl 5: set> sl 6: set>> ssl } struct SetNestMap { 1: required set> rsm 2: required set>> rssm 3: required set>>>> rssllm 4: optional set> osm 5: optional set>> ossm 6: optional set>>>> ossllm 7: set> sm 8: set>> ssm 9: set>>>> ssllm } struct AString { 1: required string s } struct ALong { 1: required i64 l } struct ABool { 1: required bool b } union UnionV2 { 1: AString aString, 2: ALong aLong, 3: ABool aNewBool } struct StructWithUnionV2 { 1: required string name, 2: required UnionV2 aUnion } struct AStructThatLooksLikeUnionV2 { 1: optional AString aString, 2: optional ALong aLong, 3: optional ABool aNewBool } struct StructWithAStructThatLooksLikeUnionV2 { 1: required string name, 2: required AStructThatLooksLikeUnionV2 aNotQuiteUnion }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy