test_class.declarator: TEST_SCALE = 2
test_class.modifier: private static final
test_class.original_string: private static final int TEST_SCALE = 2;
test_class.type: int
test_class.var_name: TEST_SCALE
test_class.declarator: TEST_DECIMAL = new BigDecimal(new BigInteger("156"), TEST_SCALE)
test_class.modifier: private static final
test_class.original_string: private static final BigDecimal TEST_DECIMAL = new BigDecimal(new BigInteger("156"), TEST_SCALE);
test_class.type: BigDecimal
test_class.var_name: TEST_DECIMAL
test_class.declarator: TEST_DECIMAL_NEGATIVE = new BigDecimal(new BigInteger("-156"), TEST_SCALE)
test_class.modifier: private static final
test_class.original_string: private static final BigDecimal TEST_DECIMAL_NEGATIVE = new BigDecimal(new BigInteger("-156"), TEST_SCALE);
test_class.type: BigDecimal
test_class.var_name: TEST_DECIMAL_NEGATIVE
test_class.declarator: TEST_BYTES = new byte[]{0, -100}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_BYTES = new byte[]{0, -100};
test_class.type: byte[]
test_class.var_name: TEST_BYTES
test_class.declarator: TEST_BYTES_NEGATIVE = new byte[]{-1, 100}
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_BYTES_NEGATIVE = new byte[]{-1, 100};
test_class.type: byte[]
test_class.var_name: TEST_BYTES_NEGATIVE
test_class.file: connect/api/src/test/java/org/apache/kafka/connect/data/DecimalTest.java
test_class.identifier: DecimalTest
test_case.body: @Test
      public void testBuilder() {
          Schema plain = Decimal.builder(2).build();
          assertEquals(Decimal.LOGICAL_NAME, plain.name());
          assertEquals(Collections.singletonMap(Decimal.SCALE_FIELD, "2"), plain.parameters());
          assertEquals(1, (Object) plain.version());
      }
test_case.class_method_signature: DecimalTest.testBuilder()
test_case.full_signature: @Test public void testBuilder()
test_case.identifier: testBuilder
test_case.invocations: build builder assertEquals name assertEquals singletonMap parameters assertEquals version
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuilder()
focal_class.declarator: LOGICAL_NAME = "org.apache.kafka.connect.data.Decimal"
focal_class.modifier: public static final
focal_class.original_string: public static final String LOGICAL_NAME = "org.apache.kafka.connect.data.Decimal";
focal_class.type: String
focal_class.var_name: LOGICAL_NAME
focal_class.declarator: SCALE_FIELD = "scale"
focal_class.modifier: public static final
focal_class.original_string: public static final String SCALE_FIELD = "scale";
focal_class.type: String
focal_class.var_name: SCALE_FIELD
focal_class.file: connect/api/src/main/java/org/apache/kafka/connect/data/Decimal.java
focal_class.identifier: Decimal
focal_class.class_method_signature: Decimal.builder(int scale)
focal_class.full_signature: public static SchemaBuilder builder(int scale)
focal_class.identifier: builder
focal_class.modifiers: public static
focal_class.parameters: (int scale)
focal_class.return: SchemaBuilder
focal_class.signature: SchemaBuilder builder(int scale)
focal_class.class_method_signature: Decimal.schema(int scale)
focal_class.full_signature: public static Schema schema(int scale)
focal_class.identifier: schema
focal_class.modifiers: public static
focal_class.parameters: (int scale)
focal_class.return: Schema
focal_class.signature: Schema schema(int scale)
focal_class.class_method_signature: Decimal.fromLogical(Schema schema, BigDecimal value)
focal_class.full_signature: public static byte[] fromLogical(Schema schema, BigDecimal value)
focal_class.identifier: fromLogical
focal_class.modifiers: public static
focal_class.parameters: (Schema schema, BigDecimal value)
focal_class.return: byte[]
focal_class.signature: byte[] fromLogical(Schema schema, BigDecimal value)
focal_class.class_method_signature: Decimal.toLogical(Schema schema, byte[] value)
focal_class.full_signature: public static BigDecimal toLogical(Schema schema, byte[] value)
focal_class.identifier: toLogical
focal_class.modifiers: public static
focal_class.parameters: (Schema schema, byte[] value)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal toLogical(Schema schema, byte[] value)
focal_class.class_method_signature: Decimal.scale(Schema schema)
focal_class.full_signature: private static int scale(Schema schema)
focal_class.identifier: scale
focal_class.modifiers: private static
focal_class.parameters: (Schema schema)
focal_class.return: int
focal_class.signature: int scale(Schema schema)
focal_method.body: public static SchemaBuilder builder(int scale) {
          return SchemaBuilder.bytes()
                  .name(LOGICAL_NAME)
                  .parameter(SCALE_FIELD, ((Integer) scale).toString())
                  .version(1);
      }
focal_method.class_method_signature: Decimal.builder(int scale)
focal_method.full_signature: public static SchemaBuilder builder(int scale)
focal_method.identifier: builder
focal_method.invocations: version parameter name bytes toString
focal_method.modifiers: public static
focal_method.parameters: (int scale)
focal_method.return: SchemaBuilder
focal_method.signature: SchemaBuilder builder(int scale)