Package org.apache.parquet.cli.util
Class Expressions
- java.lang.Object
-
- org.apache.parquet.cli.util.Expressions
-
public class Expressions extends Object
-
-
Constructor Summary
Constructors Constructor Description Expressions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.avro.SchemafilterSchema(org.apache.avro.Schema schema, String... fieldPaths)a.2.b[3]["key"] * optional (union with null) should be ignored * unions should match by position number or short name (e.g.static org.apache.avro.SchemafilterSchema(org.apache.avro.Schema schema, List<String> fieldPaths)static Objectselect(org.apache.avro.Schema schema, Object datum, String path)
-
-
-
Method Detail
-
filterSchema
public static org.apache.avro.Schema filterSchema(org.apache.avro.Schema schema, String... fieldPaths)a.2.b[3]["key"] * optional (union with null) should be ignored * unions should match by position number or short name (e.g. 2, user) * fields should match by name * arrays are dereferenced by position [n] => schema is the element schema * maps are dereferenced by key => schema is the value schema- Parameters:
schema- an Avro schemafieldPaths- selected field paths- Returns:
- a filtered schema
-
-