public class FlightSqlColumnMetadata extends Object
FlightSqlColumnMetadata metadata = new FlightSqlColumnMetadata(field.getMetadata()); Integer precision = metadata.getPrecision();FlightSqlProducer can use this to set metadata on a column in a schema as follows:
FlightSqlColumnMetadata metadata = new FlightSqlColumnMetadata.Builder() .precision(10) .scale(5) .build(); Field field = new Field("column", new FieldType(..., metadata.getMetadataMap()), null);
Modifier and Type | Class and Description |
---|---|
static class |
FlightSqlColumnMetadata.Builder
Builder of FlightSqlColumnMetadata, used on FlightSqlProducer implementations.
|
Constructor and Description |
---|
FlightSqlColumnMetadata(Map<String,String> metadataMap)
Creates a new instance of FlightSqlColumnMetadata.
|
Modifier and Type | Method and Description |
---|---|
String |
getCatalogName()
Returns the catalog name.
|
Map<String,String> |
getMetadataMap()
Returns the metadata map.
|
Integer |
getPrecision()
Returns the precision / column size.
|
Integer |
getScale()
Returns the scale / decimal digits.
|
String |
getSchemaName()
Returns the schema name.
|
String |
getTableName()
Returns the table name.
|
Boolean |
isAutoIncrement()
Returns if the column is auto incremented.
|
Boolean |
isCaseSensitive()
Returns if the column is case sensitive.
|
Boolean |
isReadOnly()
Returns if the column is read only.
|
Boolean |
isSearchable()
Returns if the column is searchable.
|
public Map<String,String> getMetadataMap()
public String getCatalogName()
public String getSchemaName()
public String getTableName()
public Integer getPrecision()
public Integer getScale()
public Boolean isAutoIncrement()
public Boolean isCaseSensitive()
public Boolean isReadOnly()
public Boolean isSearchable()
Copyright © 2022 The Apache Software Foundation. All rights reserved.