ColumnFamilyMapping class
Configuration for writing a Pub/Sub message to a Bigtable row with a user-defined key and writing to column families.
If this field is set: - The subscription messages must be formatted as JSON.
- The row key mapping is configured in the
key_definitionsection. - The top-level fields will be written either: - By default, they will be written to thedatacolumn family with the field name as the column qualifier. - But if the field name matches an existing column family (except for the defaultdatacolumn), then that field will be written to that column family, either as a scalar or its next level nested fields if it's a JSON object. - The cell timestamp will be the message publish timestamp. If the field is not set, the default behavior is to write: - row key: subscription name, message ID hash, and message ID delimited by#. - columns: message bytes written to a single column familydatawith an empty-string column qualifier. - cell timestamp: the message publish timestamp.
Constructors
- ColumnFamilyMapping({DelimitedKey? delimitedKey, RowKeySchema? rowKeySchema})
- ColumnFamilyMapping.fromJson(Map json_)
Properties
- delimitedKey ↔ DelimitedKey?
-
If set, the row key is constructed from the given key fields and
delimiter.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- rowKeySchema ↔ TextConfig?
-
If set, the row key is constructed from the field names of the table's
structured row key.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited