public class SqlFieldSchema
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SqlFieldSchema |
createArraySchema(SqlFieldSchema elementType,
boolean isNullable,
boolean isOptional) |
static SqlFieldSchema |
createMapSchema(SqlFieldSchema valueType,
boolean isNullable,
boolean isOptional) |
static SqlFieldSchema |
createPrimitiveSchema(SamzaSqlFieldType typeName,
boolean isNullable,
boolean isOptional)
Create a primitive field schema.
|
static SqlFieldSchema |
createRowFieldSchema(SqlSchema rowSchema,
boolean isNullable,
boolean isOptional) |
SqlFieldSchema |
getElementSchema()
Get the element schema if the field type is
SamzaSqlFieldType.ARRAY |
SamzaSqlFieldType |
getFieldType()
Get the Type of the Samza SQL Field.
|
SqlSchema |
getRowSchema()
Get the row schema if the field type is
SamzaSqlFieldType.ROW |
SqlFieldSchema |
getValueSchema()
Get the schema of the value if the field type is
SamzaSqlFieldType.MAP |
boolean |
isNullable()
Get if the field type is nullable.
|
boolean |
isOptional()
Get if the field type is optional.
|
boolean |
isPrimitiveField() |
public static SqlFieldSchema createPrimitiveSchema(SamzaSqlFieldType typeName, boolean isNullable, boolean isOptional)
typeName
- public static SqlFieldSchema createArraySchema(SqlFieldSchema elementType, boolean isNullable, boolean isOptional)
public static SqlFieldSchema createMapSchema(SqlFieldSchema valueType, boolean isNullable, boolean isOptional)
public static SqlFieldSchema createRowFieldSchema(SqlSchema rowSchema, boolean isNullable, boolean isOptional)
public boolean isPrimitiveField()
public SamzaSqlFieldType getFieldType()
public SqlFieldSchema getElementSchema()
SamzaSqlFieldType.ARRAY
public SqlFieldSchema getValueSchema()
SamzaSqlFieldType.MAP
public SqlSchema getRowSchema()
SamzaSqlFieldType.ROW
public boolean isNullable()
public boolean isOptional()