Example #1
0
 public void validate() {
   TypeLayout expectedLayout = TypeLayout.getTypeLayout(type);
   if (!expectedLayout.equals(typeLayout)) {
     throw new IllegalArgumentException(
         "Deserialized field does not match expected vectors. expected: "
             + expectedLayout
             + " got "
             + typeLayout);
   }
 }
Example #2
0
 public Field(String name, boolean nullable, ArrowType type, List<Field> children) {
   this(name, nullable, type, children, TypeLayout.getTypeLayout(checkNotNull(type)));
 }