private boolean isElementType(Type repeatedType, String parentName) {
    """
	Implements the rules for interpreting existing data from the logical type
	spec for the LIST annotation. This is used to produce the expected schema.
	<p>
	The AvroArrayConverter will decide whether the repeated type is the array
	element type by testing whether the element schema and repeated type are
	the same. This ensures that the LIST rules are followed when there is no
	schema and that a schema can be provided to override the default behavior.
    """
    return (
        // can't be a synthetic layer because it would be invalid
        repeatedType.isPrimitive() ||
        repeatedType.asGroupType().getFieldCount() > 1 ||
        repeatedType.asGroupType().getType(0).isRepetition(REPEATED) ||
        // known patterns without the synthetic layer
        repeatedType.getName().equals("array") ||
        repeatedType.getName().equals(parentName + "_tuple") ||
        // default assumption
        assumeRepeatedIsListElement
    );
  }
private boolean isElementType(Type repeatedType, String parentName) {
    return (
        // can't be a synthetic layer because it would be invalid
        repeatedType.isPrimitive() ||
        repeatedType.asGroupType().getFieldCount() > 1 ||
        repeatedType.asGroupType().getType(0).isRepetition(REPEATED) ||
        // known patterns without the synthetic layer
        repeatedType.getName().equals("array") ||
        repeatedType.getName().equals(parentName + "_tuple") ||
        // default assumption
        assumeRepeatedIsListElement
    );
  }
private boolean isElementType ( Type repeatedType , String parentName ) { return ( // can't be a synthetic layer because it would be invalid repeatedType . isPrimitive ( ) || repeatedType . asGroupType ( ) . getFieldCount ( ) > 1 || repeatedType . asGroupType ( ) . getType ( 0 ) . isRepetition ( REPEATED ) || // known patterns without the synthetic layer repeatedType . getName ( ) . equals ( "array" ) || repeatedType . getName ( ) . equals ( parentName + "_tuple" ) || // default assumption assumeRepeatedIsListElement ) ; }
Implements the rules for interpreting existing data from the logical type
spec for the LIST annotation. This is used to produce the expected schema.
<p>
The AvroArrayConverter will decide whether the repeated type is the array
element type by testing whether the element schema and repeated type are
the same. This ensures that the LIST rules are followed when there is no
schema and that a schema can be provided to override the default behavior.
Implements the rules for interpreting existing data from the logical type spec for the LIST annotation . This is used to produce the expected schema . <p > The AvroArrayConverter will decide whether the repeated type is the array element type by testing whether the element schema and repeated type are the same . This ensures that the LIST rules are followed when there is no schema and that a schema can be provided to override the default behavior .