@@ -46,115 +46,6 @@ public Field(String name, Type type) {
4646 this (name , type , null , false , null );
4747 }
4848
49- public static class Int8 extends Field {
50- public Int8 (String name , String docString ) {
51- super (name , Type .INT8 , docString , false , null );
52- }
53- public Int8 (String name , String docString , byte defaultValue ) {
54- super (name , Type .INT8 , docString , true , defaultValue );
55- }
56- }
57-
58- public static class Int32 extends Field {
59- public Int32 (String name , String docString ) {
60- super (name , Type .INT32 , docString , false , null );
61- }
62-
63- public Int32 (String name , String docString , int defaultValue ) {
64- super (name , Type .INT32 , docString , true , defaultValue );
65- }
66- }
67-
68- public static class Int64 extends Field {
69- public Int64 (String name , String docString ) {
70- super (name , Type .INT64 , docString , false , null );
71- }
72-
73- public Int64 (String name , String docString , long defaultValue ) {
74- super (name , Type .INT64 , docString , true , defaultValue );
75- }
76- }
77-
78- public static class UUID extends Field {
79- public UUID (String name , String docString ) {
80- super (name , Type .UUID , docString , false , null );
81- }
82-
83- public UUID (String name , String docString , UUID defaultValue ) {
84- super (name , Type .UUID , docString , true , defaultValue );
85- }
86- }
87-
88- public static class Int16 extends Field {
89- public Int16 (String name , String docString ) {
90- super (name , Type .INT16 , docString , false , null );
91- }
92- }
93-
94- public static class Uint16 extends Field {
95- public Uint16 (String name , String docString ) {
96- super (name , Type .UINT16 , docString , false , null );
97- }
98- }
99-
100- public static class Uint32 extends Field {
101- public Uint32 (String name , String docString ) {
102- super (name , Type .UNSIGNED_INT32 , docString , false , null );
103- }
104- }
105-
106- public static class Float64 extends Field {
107- public Float64 (String name , String docString ) {
108- super (name , Type .FLOAT64 , docString , false , null );
109- }
110-
111- public Float64 (String name , String docString , double defaultValue ) {
112- super (name , Type .FLOAT64 , docString , true , defaultValue );
113- }
114- }
115-
116- public static class Str extends Field {
117- public Str (String name , String docString ) {
118- super (name , Type .STRING , docString , false , null );
119- }
120- }
121-
122- public static class CompactStr extends Field {
123- public CompactStr (String name , String docString ) {
124- super (name , Type .COMPACT_STRING , docString , false , null );
125- }
126- }
127-
128- public static class NullableStr extends Field {
129- public NullableStr (String name , String docString ) {
130- super (name , Type .NULLABLE_STRING , docString , false , null );
131- }
132- }
133-
134- public static class CompactNullableStr extends Field {
135- public CompactNullableStr (String name , String docString ) {
136- super (name , Type .COMPACT_NULLABLE_STRING , docString , false , null );
137- }
138- }
139-
140- public static class Bool extends Field {
141- public Bool (String name , String docString ) {
142- super (name , Type .BOOLEAN , docString , false , null );
143- }
144- }
145-
146- public static class Array extends Field {
147- public Array (String name , Type elementType , String docString ) {
148- super (name , new ArrayOf (elementType ), docString , false , null );
149- }
150- }
151-
152- public static class CompactArray extends Field {
153- public CompactArray (String name , Type elementType , String docString ) {
154- super (name , new CompactArrayOf (elementType ), docString , false , null );
155- }
156- }
157-
15849 public static class TaggedFieldsSection extends Field {
15950 private static final String NAME = "_tagged_fields" ;
16051 private static final String DOC_STRING = "The tagged fields" ;
@@ -174,29 +65,4 @@ public TaggedFieldsSection(Type type) {
17465 super (NAME , type , DOC_STRING , false , null );
17566 }
17667 }
177-
178- public static class ComplexArray {
179- public final String name ;
180- public final String docString ;
181-
182- public ComplexArray (String name , String docString ) {
183- this .name = name ;
184- this .docString = docString ;
185- }
186-
187- public Field withFields (Field ... fields ) {
188- Schema elementType = new Schema (fields );
189- return new Field (name , new ArrayOf (elementType ), docString , false , null );
190- }
191-
192- public Field nullableWithFields (Field ... fields ) {
193- Schema elementType = new Schema (fields );
194- return new Field (name , ArrayOf .nullable (elementType ), docString , false , null );
195- }
196-
197- public Field withFields (String docStringOverride , Field ... fields ) {
198- Schema elementType = new Schema (fields );
199- return new Field (name , new ArrayOf (elementType ), docStringOverride , false , null );
200- }
201- }
20268}
0 commit comments