org.apache.spark.sql.jdbc
Class PostgresDialect
Object
org.apache.spark.sql.jdbc.JdbcDialect
org.apache.spark.sql.jdbc.PostgresDialect
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class PostgresDialect
- extends JdbcDialect
- implements scala.Product, scala.Serializable
:: DeveloperApi ::
Default postgres dialect, mapping bit/cidr/inet on read and string/binary/boolean on write.
- See Also:
- Serialized Form
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
PostgresDialect
public PostgresDialect()
canHandle
public static boolean canHandle(String url)
getCatalystType
public static scala.Option<DataType> getCatalystType(int sqlType,
String typeName,
int size,
MetadataBuilder md)
getJDBCType
public static scala.Option<JdbcType> getJDBCType(DataType dt)