public class Schema extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Schema.Builder |
Modifier and Type | Method and Description |
---|---|
static Schema.Builder |
builder() |
Schema |
getChild(int i)
Get the schema of a child element.
|
DType[] |
getChildTypes() |
String[] |
getColumnNames() |
String[] |
getFlattenedColumnNames() |
DType |
getType() |
boolean |
hasNestedChildren()
This is really for a top level struct schema where it is nested, but
for things like CSV we care that it does not have any children that are also
nested.
|
boolean |
isNested() |
boolean |
isStructOrHasStructDescendant()
Check to see if the schema includes a struct at all.
|
String |
toString() |
public static final Schema INFERRED
public Schema getChild(int i)
i
- the index of the child to read.IndexOutOfBoundsException
- if the index is not in the range of children.public static Schema.Builder builder()
public String[] getFlattenedColumnNames()
public String[] getColumnNames()
public boolean isNested()
public boolean hasNestedChildren()
public DType[] getChildTypes()
public DType getType()
public boolean isStructOrHasStructDescendant()
Copyright © 2024. All rights reserved.