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); } }
public Field(String name, boolean nullable, ArrowType type, List<Field> children) { this(name, nullable, type, children, TypeLayout.getTypeLayout(checkNotNull(type))); }