示例#1
0
文件: Field.java 项目: apache/arrow
 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);
   }
 }
示例#2
0
文件: Field.java 项目: apache/arrow
 public Field(String name, boolean nullable, ArrowType type, List<Field> children) {
   this(name, nullable, type, children, TypeLayout.getTypeLayout(checkNotNull(type)));
 }