ReadSession

com.google.cloud.bigquery.storage.v1.stream.ReadSession
See theReadSession companion object
final case class ReadSession(name: String, expireTime: Option[Timestamp], dataFormat: DataFormat, schema: Schema, table: String, tableModifiers: Option[TableModifiers], readOptions: Option[TableReadOptions], streams: Seq[ReadStream], estimatedTotalBytesScanned: Long, estimatedTotalPhysicalFileSize: Long, estimatedRowCount: Long, traceId: String, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[ReadSession]

Information about the ReadSession.

Value parameters

dataFormat

Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not supported.

estimatedRowCount

Output only. An estimate on the number of rows present in this session's streams. This estimate is based on metadata from the table which might be incomplete or stale.

estimatedTotalBytesScanned

Output only. An estimate on the number of bytes this session will scan when all streams are completely consumed. This estimate is based on metadata from the table which might be incomplete or stale.

estimatedTotalPhysicalFileSize

Output only. A pre-projected estimate of the total physical size of files (in bytes) that this session will scan when all streams are consumed. This estimate is independent of the selected columns and can be based on incomplete or stale metadata from the table. This field is only set for BigLake tables.

expireTime

Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.

name

Output only. Unique identifier for the session, in the form projects/{project_id}/locations/{location}/sessions/{session_id}.

readOptions

Optional. Read options for this session (e.g. column selection, filters).

streams

Output only. A list of streams created with the session. At least one stream is created with the session. In the future, larger request_stream_count values *may* result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.

table

Immutable. Table that this ReadSession is reading from, in the form projects/{project_id}/datasets/{dataset_id}/tables/{table_id}

tableModifiers

Optional. Any modifiers which are applied when reading from the specified table.

traceId

Optional. ID set by client to annotate a session identity. This does not need to be strictly unique, but instead the same ID should be used to group logically connected sessions (e.g. All using the same ID for all sessions needed to complete a Spark SQL query is reasonable). Maximum length is 256 bytes.

Attributes

Companion
object
Source
ReadSession.scala
Graph
Supertypes
trait Updatable[ReadSession]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
ReadSession.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
ReadSession.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
ReadSession.scala

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala
def withName(`__v`: String): ReadSession

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala

Attributes

Source
ReadSession.scala
def withUnknownFields(`__v`: UnknownFieldSet): ReadSession

Attributes

Source
ReadSession.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
ReadSession.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[ReadSession, ReadSession] => () => ReadSession*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala