Creates a projection that either includes or excludes a variable number of fields.
Creates a projection that either includes or excludes a variable number of fields.
If false, includes the provided fields in the projection. If true, the provided fields will be excluded, and all other fields from the record will be included in the projection.
If exclude is false, fields to include in the projection. Else, fields to exclude from the projection.
Returns the specified schema with the fields predicated out.
Unlike the other apply methods, this method will allow you to project down to zero fields, which may cause an exception when loading from disk.
,The schema is inferred from the provided FieldValues. Undefined behavior may result if you provide FieldValues from multiple different FieldEnumerations.
Creates a projection that includes a variable number of fields.
Creates a projection that includes a variable number of fields.
Fields to include in the projection
Returns the specified schema with the fields predicated out.
IllegalArgumentException
if there are no fields included in the
projection.
The schema is inferred from the provided FieldValues. Undefined behavior may result if you provide FieldValues from multiple different FieldEnumerations.
Creates a projection that includes a variable number of fields.
Creates a projection that includes a variable number of fields.
Fields to include in the projection
Returns the specified schema with the fields predicated out.
IllegalArgumentException
if there are no fields included in the
projection.
The schema is inferred from the provided FieldValues. Undefined behavior may result if you provide FieldValues from multiple different FieldEnumerations.
Avro utility object to create a projection of a Schema.