test_class.declarator: FLAT_STRUCT_SCHEMA = SchemaBuilder.struct()
              .field("int8", Schema.INT8_SCHEMA)
              .field("int16", Schema.INT16_SCHEMA)
              .field("int32", Schema.INT32_SCHEMA)
              .field("int64", Schema.INT64_SCHEMA)
              .field("float32", Schema.FLOAT32_SCHEMA)
              .field("float64", Schema.FLOAT64_SCHEMA)
              .field("boolean", Schema.BOOLEAN_SCHEMA)
              .field("string", Schema.STRING_SCHEMA)
              .field("bytes", Schema.BYTES_SCHEMA)
              .build()
test_class.modifier: private static final
test_class.original_string: private static final Schema FLAT_STRUCT_SCHEMA = SchemaBuilder.struct()
              .field("int8", Schema.INT8_SCHEMA)
              .field("int16", Schema.INT16_SCHEMA)
              .field("int32", Schema.INT32_SCHEMA)
              .field("int64", Schema.INT64_SCHEMA)
              .field("float32", Schema.FLOAT32_SCHEMA)
              .field("float64", Schema.FLOAT64_SCHEMA)
              .field("boolean", Schema.BOOLEAN_SCHEMA)
              .field("string", Schema.STRING_SCHEMA)
              .field("bytes", Schema.BYTES_SCHEMA)
              .build();
test_class.type: Schema
test_class.var_name: FLAT_STRUCT_SCHEMA
test_class.declarator: ARRAY_SCHEMA = SchemaBuilder.array(Schema.INT8_SCHEMA).build()
test_class.modifier: private static final
test_class.original_string: private static final Schema ARRAY_SCHEMA = SchemaBuilder.array(Schema.INT8_SCHEMA).build();
test_class.type: Schema
test_class.var_name: ARRAY_SCHEMA
test_class.declarator: MAP_SCHEMA = SchemaBuilder.map(
              Schema.INT32_SCHEMA,
              Schema.STRING_SCHEMA
      ).build()
test_class.modifier: private static final
test_class.original_string: private static final Schema MAP_SCHEMA = SchemaBuilder.map(
              Schema.INT32_SCHEMA,
              Schema.STRING_SCHEMA
      ).build();
test_class.type: Schema
test_class.var_name: MAP_SCHEMA
test_class.declarator: NESTED_CHILD_SCHEMA = SchemaBuilder.struct()
              .field("int8", Schema.INT8_SCHEMA)
              .build()
test_class.modifier: private static final
test_class.original_string: private static final Schema NESTED_CHILD_SCHEMA = SchemaBuilder.struct()
              .field("int8", Schema.INT8_SCHEMA)
              .build();
test_class.type: Schema
test_class.var_name: NESTED_CHILD_SCHEMA
test_class.declarator: NESTED_SCHEMA = SchemaBuilder.struct()
              .field("array", ARRAY_SCHEMA)
              .field("map", MAP_SCHEMA)
              .field("nested", NESTED_CHILD_SCHEMA)
              .build()
test_class.modifier: private static final
test_class.original_string: private static final Schema NESTED_SCHEMA = SchemaBuilder.struct()
              .field("array", ARRAY_SCHEMA)
              .field("map", MAP_SCHEMA)
              .field("nested", NESTED_CHILD_SCHEMA)
              .build();
test_class.type: Schema
test_class.var_name: NESTED_SCHEMA
test_class.declarator: REQUIRED_FIELD_SCHEMA = Schema.INT8_SCHEMA
test_class.modifier: private static final
test_class.original_string: private static final Schema REQUIRED_FIELD_SCHEMA = Schema.INT8_SCHEMA;
test_class.type: Schema
test_class.var_name: REQUIRED_FIELD_SCHEMA
test_class.declarator: OPTIONAL_FIELD_SCHEMA = SchemaBuilder.int8().optional().build()
test_class.modifier: private static final
test_class.original_string: private static final Schema OPTIONAL_FIELD_SCHEMA = SchemaBuilder.int8().optional().build();
test_class.type: Schema
test_class.var_name: OPTIONAL_FIELD_SCHEMA
test_class.declarator: DEFAULT_FIELD_SCHEMA = SchemaBuilder.int8().defaultValue((byte) 0).build()
test_class.modifier: private static final
test_class.original_string: private static final Schema DEFAULT_FIELD_SCHEMA = SchemaBuilder.int8().defaultValue((byte) 0).build();
test_class.type: Schema
test_class.var_name: DEFAULT_FIELD_SCHEMA
test_class.file: connect/api/src/test/java/org/apache/kafka/connect/data/StructTest.java
test_class.identifier: StructTest
test_case.body: @Test
      public void testEquals() {
          Struct struct1 = new Struct(FLAT_STRUCT_SCHEMA)
                  .put("int8", (byte) 12)
                  .put("int16", (short) 12)
                  .put("int32", 12)
                  .put("int64", (long) 12)
                  .put("float32", 12.f)
                  .put("float64", 12.)
                  .put("boolean", true)
                  .put("string", "foobar")
                  .put("bytes", ByteBuffer.wrap("foobar".getBytes()));
          Struct struct2 = new Struct(FLAT_STRUCT_SCHEMA)
                  .put("int8", (byte) 12)
                  .put("int16", (short) 12)
                  .put("int32", 12)
                  .put("int64", (long) 12)
                  .put("float32", 12.f)
                  .put("float64", 12.)
                  .put("boolean", true)
                  .put("string", "foobar")
                  .put("bytes", ByteBuffer.wrap("foobar".getBytes()));
          Struct struct3 = new Struct(FLAT_STRUCT_SCHEMA)
                  .put("int8", (byte) 12)
                  .put("int16", (short) 12)
                  .put("int32", 12)
                  .put("int64", (long) 12)
                  .put("float32", 12.f)
                  .put("float64", 12.)
                  .put("boolean", true)
                  .put("string", "mismatching string")
                  .put("bytes", ByteBuffer.wrap("foobar".getBytes()));
  
          assertEquals(struct1, struct2);
          assertNotEquals(struct1, struct3);
  
          List<Byte> array = Arrays.asList((byte) 1, (byte) 2);
          Map<Integer, String> map = Collections.singletonMap(1, "string");
          struct1 = new Struct(NESTED_SCHEMA)
                  .put("array", array)
                  .put("map", map)
                  .put("nested", new Struct(NESTED_CHILD_SCHEMA).put("int8", (byte) 12));
          List<Byte> array2 = Arrays.asList((byte) 1, (byte) 2);
          Map<Integer, String> map2 = Collections.singletonMap(1, "string");
          struct2 = new Struct(NESTED_SCHEMA)
                  .put("array", array2)
                  .put("map", map2)
                  .put("nested", new Struct(NESTED_CHILD_SCHEMA).put("int8", (byte) 12));
          List<Byte> array3 = Arrays.asList((byte) 1, (byte) 2, (byte) 3);
          Map<Integer, String> map3 = Collections.singletonMap(2, "string");
          struct3 = new Struct(NESTED_SCHEMA)
                  .put("array", array3)
                  .put("map", map3)
                  .put("nested", new Struct(NESTED_CHILD_SCHEMA).put("int8", (byte) 13));
  
          assertEquals(struct1, struct2);
          assertNotEquals(struct1, struct3);
      }
test_case.class_method_signature: StructTest.testEquals()
test_case.full_signature: @Test public void testEquals()
test_case.identifier: testEquals
test_case.invocations: put put put put put put put put put wrap getBytes put put put put put put put put put wrap getBytes put put put put put put put put put wrap getBytes assertEquals assertNotEquals asList singletonMap put put put put asList singletonMap put put put put asList singletonMap put put put put assertEquals assertNotEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEquals()
focal_class.declarator: schema
focal_class.modifier: private final
focal_class.original_string: private final Schema schema;
focal_class.type: Schema
focal_class.var_name: schema
focal_class.declarator: values
focal_class.modifier: private final
focal_class.original_string: private final Object[] values;
focal_class.type: Object[]
focal_class.var_name: values
focal_class.file: connect/api/src/main/java/org/apache/kafka/connect/data/Struct.java
focal_class.identifier: Struct
focal_class.class_method_signature: Struct.Struct(Schema schema)
focal_class.full_signature: public  Struct(Schema schema)
focal_class.identifier: Struct
focal_class.modifiers: public
focal_class.parameters: (Schema schema)
focal_class.signature:  Struct(Schema schema)
focal_class.class_method_signature: Struct.schema()
focal_class.full_signature: public Schema schema()
focal_class.identifier: schema
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Schema
focal_class.signature: Schema schema()
focal_class.class_method_signature: Struct.get(String fieldName)
focal_class.full_signature: public Object get(String fieldName)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Object
focal_class.signature: Object get(String fieldName)
focal_class.class_method_signature: Struct.get(Field field)
focal_class.full_signature: public Object get(Field field)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (Field field)
focal_class.return: Object
focal_class.signature: Object get(Field field)
focal_class.class_method_signature: Struct.getWithoutDefault(String fieldName)
focal_class.full_signature: public Object getWithoutDefault(String fieldName)
focal_class.identifier: getWithoutDefault
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Object
focal_class.signature: Object getWithoutDefault(String fieldName)
focal_class.class_method_signature: Struct.getInt8(String fieldName)
focal_class.full_signature: public Byte getInt8(String fieldName)
focal_class.identifier: getInt8
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Byte
focal_class.signature: Byte getInt8(String fieldName)
focal_class.class_method_signature: Struct.getInt16(String fieldName)
focal_class.full_signature: public Short getInt16(String fieldName)
focal_class.identifier: getInt16
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Short
focal_class.signature: Short getInt16(String fieldName)
focal_class.class_method_signature: Struct.getInt32(String fieldName)
focal_class.full_signature: public Integer getInt32(String fieldName)
focal_class.identifier: getInt32
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Integer
focal_class.signature: Integer getInt32(String fieldName)
focal_class.class_method_signature: Struct.getInt64(String fieldName)
focal_class.full_signature: public Long getInt64(String fieldName)
focal_class.identifier: getInt64
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Long
focal_class.signature: Long getInt64(String fieldName)
focal_class.class_method_signature: Struct.getFloat32(String fieldName)
focal_class.full_signature: public Float getFloat32(String fieldName)
focal_class.identifier: getFloat32
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Float
focal_class.signature: Float getFloat32(String fieldName)
focal_class.class_method_signature: Struct.getFloat64(String fieldName)
focal_class.full_signature: public Double getFloat64(String fieldName)
focal_class.identifier: getFloat64
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Double
focal_class.signature: Double getFloat64(String fieldName)
focal_class.class_method_signature: Struct.getBoolean(String fieldName)
focal_class.full_signature: public Boolean getBoolean(String fieldName)
focal_class.identifier: getBoolean
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Boolean
focal_class.signature: Boolean getBoolean(String fieldName)
focal_class.class_method_signature: Struct.getString(String fieldName)
focal_class.full_signature: public String getString(String fieldName)
focal_class.identifier: getString
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: String
focal_class.signature: String getString(String fieldName)
focal_class.class_method_signature: Struct.getBytes(String fieldName)
focal_class.full_signature: public byte[] getBytes(String fieldName)
focal_class.identifier: getBytes
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: byte[]
focal_class.signature: byte[] getBytes(String fieldName)
focal_class.class_method_signature: Struct.getArray(String fieldName)
focal_class.full_signature: @SuppressWarnings("unchecked") public List<T> getArray(String fieldName)
focal_class.identifier: getArray
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (String fieldName)
focal_class.return: List<T>
focal_class.signature: List<T> getArray(String fieldName)
focal_class.class_method_signature: Struct.getMap(String fieldName)
focal_class.full_signature: @SuppressWarnings("unchecked") public Map<K, V> getMap(String fieldName)
focal_class.identifier: getMap
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (String fieldName)
focal_class.return: Map<K, V>
focal_class.signature: Map<K, V> getMap(String fieldName)
focal_class.class_method_signature: Struct.getStruct(String fieldName)
focal_class.full_signature: public Struct getStruct(String fieldName)
focal_class.identifier: getStruct
focal_class.modifiers: public
focal_class.parameters: (String fieldName)
focal_class.return: Struct
focal_class.signature: Struct getStruct(String fieldName)
focal_class.class_method_signature: Struct.put(String fieldName, Object value)
focal_class.full_signature: public Struct put(String fieldName, Object value)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (String fieldName, Object value)
focal_class.return: Struct
focal_class.signature: Struct put(String fieldName, Object value)
focal_class.class_method_signature: Struct.put(Field field, Object value)
focal_class.full_signature: public Struct put(Field field, Object value)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (Field field, Object value)
focal_class.return: Struct
focal_class.signature: Struct put(Field field, Object value)
focal_class.class_method_signature: Struct.validate()
focal_class.full_signature: public void validate()
focal_class.identifier: validate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void validate()
focal_class.class_method_signature: Struct.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: Struct.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Struct.lookupField(String fieldName)
focal_class.full_signature: private Field lookupField(String fieldName)
focal_class.identifier: lookupField
focal_class.modifiers: private
focal_class.parameters: (String fieldName)
focal_class.return: Field
focal_class.signature: Field lookupField(String fieldName)
focal_class.class_method_signature: Struct.getCheckType(String fieldName, Schema.Type type)
focal_class.full_signature: private Object getCheckType(String fieldName, Schema.Type type)
focal_class.identifier: getCheckType
focal_class.modifiers: private
focal_class.parameters: (String fieldName, Schema.Type type)
focal_class.return: Object
focal_class.signature: Object getCheckType(String fieldName, Schema.Type type)
focal_method.body: @Override
      public boolean equals(Object o) {
          if (this == o) return true;
          if (o == null || getClass() != o.getClass()) return false;
          Struct struct = (Struct) o;
          return Objects.equals(schema, struct.schema) &&
                  Arrays.equals(values, struct.values);
      }
focal_method.class_method_signature: Struct.equals(Object o)
focal_method.full_signature: @Override public boolean equals(Object o)
focal_method.identifier: equals
focal_method.invocations: getClass getClass equals equals
focal_method.modifiers: @Override public
focal_method.parameters: (Object o)
focal_method.return: boolean
focal_method.signature: boolean equals(Object o)