@Test(expected = DataException.class) public void testInvalidStructFieldSchema() { new Struct(NESTED_SCHEMA).put("nested", new Struct(MAP_SCHEMA)); }
public Struct put(String fieldName, Object value) { Field field = lookupField(fieldName); return put(field, value); }
Struct { public Struct put(String fieldName, Object value) { Field field = lookupField(fieldName); return put(field, value); } }
Struct { public Struct put(String fieldName, Object value) { Field field = lookupField(fieldName); return put(field, value); } Struct(Schema schema); }
Struct { public Struct put(String fieldName, Object value) { Field field = lookupField(fieldName); return put(field, value); } Struct(Schema schema); Schema schema(); Object get(String fieldName); Object get(Field field); Object getWithoutDefault(String fieldName); Byte getInt8(String fieldName); Short getInt16(String fieldName); Integer getInt32(String fieldName); Long getInt64(String fieldName); Float getFloat32(String fieldName); Double getFloat64(String fieldName); Boolean getBoolean(String fieldName); String getString(String fieldName); byte[] getBytes(String fieldName); @SuppressWarnings("unchecked") List<T> getArray(String fieldName); @SuppressWarnings("unchecked") Map<K, V> getMap(String fieldName); Struct getStruct(String fieldName); Struct put(String fieldName, Object value); Struct put(Field field, Object value); void validate(); @Override boolean equals(Object o); @Override int hashCode(); }
Struct { public Struct put(String fieldName, Object value) { Field field = lookupField(fieldName); return put(field, value); } Struct(Schema schema); Schema schema(); Object get(String fieldName); Object get(Field field); Object getWithoutDefault(String fieldName); Byte getInt8(String fieldName); Short getInt16(String fieldName); Integer getInt32(String fieldName); Long getInt64(String fieldName); Float getFloat32(String fieldName); Double getFloat64(String fieldName); Boolean getBoolean(String fieldName); String getString(String fieldName); byte[] getBytes(String fieldName); @SuppressWarnings("unchecked") List<T> getArray(String fieldName); @SuppressWarnings("unchecked") Map<K, V> getMap(String fieldName); Struct getStruct(String fieldName); Struct put(String fieldName, Object value); Struct put(Field field, Object value); void validate(); @Override boolean equals(Object o); @Override int hashCode();  }