public interface NestedFieldsProjectableTableSource<T>
TableSource
with nested fields.
A TableSource
extending this interface is able
to project the nested fields of the returned table.
Modifier and Type | Method and Description |
---|---|
TableSource<T> |
projectNestedFields(int[] fields,
String[][] nestedFields)
Creates a copy of the
TableSource that projects its output on the specified nested fields. |
TableSource<T> projectNestedFields(int[] fields, String[][] nestedFields)
TableSource
that projects its output on the specified nested fields.
fields
- The indexes of the fields to return.nestedFields
- The accessed nested fields of the fields to return.
e.g. tableSchema = { id, student<\school<\city, tuition>, age, name>, teacher<\age, name> }
select (id, student.school.city, student.age, teacher)
fields = field = [0, 1, 2] nestedFields \[\["*"], ["school.city", "age"], ["*"\]\]
TableSource
that projects its output.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.