geotrellis.data

PostgresReader

class PostgresReader extends AnyRef

PostgresReader wraps a JDBC connection to a Postgres database.

It is NOT threadsafe, although the underlying connection object is. This object is lightweight and you should instantiate one per thread, using the same connection where possible.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PostgresReader
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PostgresReader(conn: Connection)

Type Members

  1. type RowBuilder[T] = (ResultSet, ResultSetMetaData, Int) ⇒ T

    Function used to build a T from a ResultSet's row.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def bind(stmt: PreparedStatement, values: Array[Any]): Unit

    Binds an array of values to a prepared statement.

    Binds an array of values to a prepared statement.

    This method mutates the prepared statement.

  8. def bindValue(stmt: PreparedStatement, i: Int, value: Any): Unit

    Bind a value into a prepared statement at the specified position.

    Bind a value into a prepared statement at the specified position.

    This method mutates the prepared statement.

  9. def buildFeature(r: ResultSet, m: ResultSetMetaData, n: Int, geometryIndex: Int, valueIndex: Int): Feature

    Build a Feature from a row of a ResultSet.

  10. def buildFeatures(r: ResultSet, geometryIndex: Int, valueIndex: Int): Array[Feature]

    Given a ResultSet, build an array of features.

  11. def buildLineString(geom: Geometry, value: Int, attrs: Map[String, Any]): LineString

  12. def buildMultiPolygon(geom: Geometry, value: Int, attrs: Map[String, Any]): MultiPolygon

  13. def buildPoint(geom: Geometry, value: Int, attrs: Map[String, Any]): Point

  14. def buildPolygon(geom: Geometry, value: Int, attrs: Map[String, Any]): Polygon

  15. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def colName(m: ResultSetMetaData, i: Int): String

    Get the name of column i (0-indexed) of the given results.

  17. def colType(m: ResultSetMetaData, i: Int): String

    Get the name of column i (0-indexed) of the given results.

  18. val conn: Connection

  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  23. def getColumn[T](r: ResultSet, m: ResultSetMetaData, i: Int): T

    Read a column of data from the ResultSet, given the ResultSetMetaData object.

    Read a column of data from the ResultSet, given the ResultSetMetaData object. This method uses reflection on the result set to determine the correct types to use.

  24. def getColumn[T](r: ResultSet, i: Int): T

    Read a column of data from the ResultSet.

    Read a column of data from the ResultSet. This method uses reflection on the result set to determine the correct type to use.

  25. def getFeatures(sql: String, params: Array[Any], geometryIndex: Int, valueIndex: Int): Array[Feature]

    Get an array of features from a parameterized query.

  26. def getFeatures(sql: String, geometryIndex: Int, valueIndex: Int): Array[Feature]

    Get an array of features from a query.

  27. def getFeatures(sql: String, geometryIndex: Int): Array[Feature]

    Get an array of features from a query.

  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def prepare(sql: String, params: Array[Any]): PreparedStatement

    Prepare an SQL statement with the provided parameters.

  34. def prepare(sql: String): PreparedStatement

    Prepare an SQL statement with the provided parameters.

  35. def rowAsArray(r: ResultSet, m: ResultSetMetaData, n: Int): Array[Any]

  36. def rowAsArray(r: ResultSet): Array[Any]

    Build an Array[Any] from the current row of the ResultSet.

  37. def rowAsMap(r: ResultSet, m: ResultSetMetaData, n: Int): Map[String, Any]

  38. def rowAsMap(r: ResultSet): Map[String, Any]

    Build a Map[String, Any] from the current row of the ResultSet.

  39. def rowsAsArray[T](r: ResultSet, f: (ResultSet, ResultSetMetaData, Int) ⇒ T)(implicit arg0: Manifest[T]): Array[T]

    Creates an Array[T] from the ResultSet's rows, using the given builder.

  40. def rowsAsArrayOfArrays(r: ResultSet): Array[Array[Any]]

    Creates an Array[Array[Any]] from the ResultSet's rows.

  41. def rowsAsArrayOfMaps(r: ResultSet): Array[Map[String, Any]]

    Creates an Array[Map[String, Any]] from the ResultSet's rows.

  42. def run(sql: String, values: Array[Any]): ResultSet

    Prepare and run an SQL statement.

  43. def run(sql: String): ResultSet

    Prepare and run an SQL statement.

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. val wkb: WKBReader

Inherited from AnyRef

Inherited from Any