Send feedback
Class Row (3.8.0) Stay organized with collections
Save and categorize content based on your preferences.
Version 3.8.0 keyboard_arrow_down
Create a Row object to interact with your table rows.
Package
@google-cloud/bigtable
Example
const
{
Bigtable
}
=
require
(
' @google-cloud/bigtable
'
);
const
bigtable
=
new
Bigtable
();
const
instance
=
bigtable
.
instance
(
'my-instance'
);
const
table
=
instance
.
table
(
'prezzy'
);
const
row
=
table
.
row
(
'gwashington'
);
Constructors
(constructor)(table, key)
constructor
(
table
:
Table
,
key
:
string
);
Constructs a new instance of the Row
class
Parameters
Properties
bigtable
data
id
key
table
Methods
create(options)
create
(
options
?:
CreateRowOptions
)
:
Promise<CreateRowResponse>
;
Parameter
Returns
create(options, callback)
create
(
options
:
CreateRowOptions
,
callback
:
CreateRowCallback
)
:
void
;
Parameters
Returns
create(callback)
create
(
callback
:
CreateRowCallback
)
:
void
;
Parameter
Returns
createRules(rules, options)
createRules
(
rules
:
Rule
|
Rule
[],
options
?:
CallOptions
)
:
Promise<CreateRulesResponse>
;
Parameters Name
Description
rules
Rule
| Rule
[]
options
CallOptions
Returns
createRules(rules, options, callback)
createRules
(
rules
:
Rule
|
Rule
[],
options
:
CallOptions
,
callback
:
CreateRulesCallback
)
:
void
;
Parameters
Returns
createRules(rules, callback)
createRules
(
rules
:
Rule
|
Rule
[],
callback
:
CreateRulesCallback
)
:
void
;
Parameters
Returns
delete(options)
delete
(
options
?:
CallOptions
)
:
Promise<MutateResponse>
;
Parameter
Returns
delete(options, callback)
delete
(
options
:
CallOptions
,
callback
:
MutateCallback
)
:
void
;
Parameters
Returns
delete(callback)
delete
(
callback
:
MutateCallback
)
:
void
;
Parameter
Returns
deleteCells(columns, options)
deleteCells
(
columns
:
string
[],
options
?:
CallOptions
)
:
Promise<MutateResponse>
;
Parameters
Returns
deleteCells(columns, options, callback)
deleteCells
(
columns
:
string
[],
options
:
CallOptions
,
callback
:
MutateCallback
)
:
void
;
Parameters
Returns
deleteCells(columns, callback)
deleteCells
(
columns
:
string
[],
callback
:
MutateCallback
)
:
void
;
Parameters
Returns
exists(options)
exists
(
options
?:
CallOptions
)
:
Promise<RowExistsResponse>
;
Parameter
Returns
exists(options, callback)
exists
(
options
:
CallOptions
,
callback
:
RowExistsCallback
)
:
void
;
Parameters
Returns
exists(callback)
exists
(
callback
:
RowExistsCallback
)
:
void
;
Parameter
Returns
filter(filter, config)
filter
(
filter
:
RawFilter
,
config
?:
FilterConfig
)
:
Promise<FilterResponse>
;
Parameters
Returns
filter(filter, config, callback)
filter
(
filter
:
RawFilter
,
config
:
FilterConfig
,
callback
:
FilterCallback
)
:
void
;
Parameters
Returns
filter(filter, callback)
filter
(
filter
:
RawFilter
,
callback
:
FilterCallback
)
:
void
;
Parameters
Returns
static
formatChunks_
(
chunks
:
Chunk
[],
options
?:
ConvertFromBytesUserOptions
)
:
Row
[];
Formats the row chunks into friendly format. Chunks contain 3 properties:
rowContents
The row contents, this essentially is all data pertaining to a single family.
commitRow
This is a boolean telling us the all previous chunks for this row are ok to consume.
resetRow
This is a boolean telling us that all the previous chunks are to be discarded.
Parameters
Returns
Example Row
.
formatChunks_
(
chunks
);
// {
// follows: {
// gwashington: [
// {
// value: 2
// }
// ]
// }
// }
static
formatFamilies_
(
families
:
google
.
bigtable
.
v2
.
IFamily
[],
options
?:
FormatFamiliesOptions
)
:
{
[
index
:
string
]
:
{};
};
Formats a rowContents object into friendly format.
Parameters Name
Description
families
google.bigtable.v2.IFamily
[]
The row families.
options
FormatFamiliesOptions
Formatting options.
Returns
Example const
families
=
[
{
name
:
'follows'
,
columns
:
[
{
qualifier
:
'gwashington'
,
cells
:
[
{
value
:
2
}
]
}
]
}
];
Row
.
formatFamilies_
(
families
);
// {
// follows: {
// gwashington: [
// {
// value: 2
// }
// ]
// }
// }
get(options)
get
(
options
?:
GetRowOptions
)
:
Promise<GetRowResponse<Row>
> ;
Parameter
Returns
get(columns, options)
get<T
=
any
> (
columns
:
string
[],
options
?:
GetRowOptions
)
:
Promise<GetRowResponse<T>
> ;
Parameters
Returns
Type Parameter
get(columns, options, callback)
get<T
=
any
> (
columns
:
string
[],
options
:
GetRowOptions
,
callback
:
GetRowCallback<T>
)
:
void
;
Parameters
Returns
Type Parameter
get(columns, callback)
get<T
=
any
> (
columns
:
string
[],
callback
:
GetRowCallback<T>
)
:
void
;
Parameters
Returns
Type Parameter
get(callback)
get
(
callback
:
GetRowCallback<Row>
)
:
void
;
Parameter
Returns
get(options, callback)
get
(
options
:
GetRowOptions
,
callback
:
GetRowCallback<Row>
)
:
void
;
Parameters
Returns
getMetadata
(
options
?:
GetRowOptions
)
:
Promise<GetRowMetadataResponse>
;
Parameter
Returns
getMetadata
(
options
:
GetRowOptions
,
callback
:
GetRowMetadataCallback
)
:
void
;
Parameters
Returns
getMetadata
(
callback
:
GetRowMetadataCallback
)
:
void
;
Parameter
Returns
increment(column, value)
increment
(
column
:
string
,
value
?:
number
)
:
Promise<IncrementResponse>
;
Parameters
Returns
increment(column, value, options)
increment
(
column
:
string
,
value
:
number
,
options
?:
CallOptions
)
:
Promise<IncrementResponse>
;
Parameters
Returns
increment(column, options)
increment
(
column
:
string
,
options
?:
CallOptions
)
:
Promise<IncrementResponse>
;
Parameters
Returns
increment(column, value, options, callback)
increment
(
column
:
string
,
value
:
number
,
options
:
CallOptions
,
callback
:
IncrementCallback
)
:
void
;
Parameters
Returns
increment(column, value, callback)
increment
(
column
:
string
,
value
:
number
,
callback
:
IncrementCallback
)
:
void
;
Parameters
Returns
increment(column, options, callback)
increment
(
column
:
string
,
options
:
CallOptions
,
callback
:
IncrementCallback
)
:
void
;
Parameters
Returns
increment(column, callback)
increment
(
column
:
string
,
callback
:
IncrementCallback
)
:
void
;
Parameters
Returns
save(entry, options)
save
(
entry
:
Entry
,
options
?:
CallOptions
)
:
Promise<MutateResponse>
;
Parameters
Returns
save(entry, options, callback)
save
(
entry
:
Entry
,
options
:
CallOptions
,
callback
:
MutateCallback
)
:
void
;
Parameters
Returns
save(entry, callback)
save
(
entry
:
Entry
,
callback
:
MutateCallback
)
:
void
;
Parameters
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]