public interface MutationApi<T>The API for creating mutations for a single row.
Type Parameter |
|
|---|---|
| Name | Description |
T |
|
Methods
deleteCells(String familyName, ByteString qualifier)
public abstract T deleteCells(String familyName, ByteString qualifier)Adds a mutation which deletes cells from the specified column.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
ByteString |
| Returns | |
|---|---|
| Type | Description |
T |
|
deleteCells(String familyName, ByteString qualifier, Range.TimestampRange timestampRange)
public abstract T deleteCells(String familyName, ByteString qualifier, Range.TimestampRange timestampRange)Adds a mutation which deletes cells from the specified column, restricted to a given timestamp range.
| Parameters | |
|---|---|
| Name | Description |
familyName |
StringThe family name. |
qualifier |
ByteStringThe qualifier. |
timestampRange |
Range.TimestampRangeThe timestamp range in microseconds. |
| Returns | |
|---|---|
| Type | Description |
T |
|
deleteCells(String familyName, String qualifier)
public abstract T deleteCells(String familyName, String qualifier)Adds a mutation which deletes cells from the specified column.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
String |
| Returns | |
|---|---|
| Type | Description |
T |
|
deleteFamily(String familyName)
public abstract T deleteFamily(String familyName)Adds a mutation which deletes all cells from the specified column family.
| Parameter | |
|---|---|
| Name | Description |
familyName |
String |
| Returns | |
|---|---|
| Type | Description |
T |
|
deleteRow()
public abstract T deleteRow()Adds a mutation which deletes all cells from the containing row.
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, ByteString qualifier, ByteString value)
public abstract T setCell(String familyName, ByteString qualifier, ByteString value)Adds a mutation which sets the value of the specified cell.
Uses microseconds since epoch as the timestamp.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
ByteString |
value |
ByteString |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, ByteString qualifier, long value)
public abstract T setCell(String familyName, ByteString qualifier, long value)Adds a mutation which sets the value of the specified cell.
Uses microseconds since epoch as the timestamp.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
ByteString |
value |
long |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, ByteString qualifier, long timestamp, ByteString value)
public abstract T setCell(String familyName, ByteString qualifier, long timestamp, ByteString value)Adds a mutation which sets the value of the specified cell.
Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to MILLIS). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: 1571902339435000.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
ByteString |
timestamp |
long |
value |
ByteString |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, ByteString qualifier, long timestamp, long value)
public abstract T setCell(String familyName, ByteString qualifier, long timestamp, long value)Adds a mutation which sets the value of the specified cell.
Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to MILLIS). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: 1571902339435000.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
ByteString |
timestamp |
long |
value |
long |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, String qualifier, String value)
public abstract T setCell(String familyName, String qualifier, String value)Adds a mutation which sets the value of the specified cell.
This a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, String qualifier, long value)
public abstract T setCell(String familyName, String qualifier, long value)Adds a mutation which sets the value of the specified cell.
This a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp. Also it accepts long value.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
String |
value |
long |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, String qualifier, long timestamp, String value)
public abstract T setCell(String familyName, String qualifier, long timestamp, String value)Adds a mutation which sets the value of the specified cell.
This is a convenience override that converts Strings to ByteStrings.
Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to MILLIS). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: 1571902339435000.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
String |
timestamp |
long |
value |
String |
| Returns | |
|---|---|
| Type | Description |
T |
|
setCell(String familyName, String qualifier, long timestamp, long value)
public abstract T setCell(String familyName, String qualifier, long timestamp, long value)Adds a mutation which sets the value of the specified cell.
This is a convenience override that converts Strings to ByteStrings.
Note: The timestamp values are in microseconds but must match the granularity of the
table(defaults to MILLIS). Therefore, the given value must be a multiple of 1000 (millisecond
granularity). For example: 1571902339435000.
| Parameters | |
|---|---|
| Name | Description |
familyName |
String |
qualifier |
String |
timestamp |
long |
value |
long |
| Returns | |
|---|---|
| Type | Description |
T |
|