public interface MetricsTable
extends co.cask.cdap.api.dataset.Dataset
| Modifier and Type | Method and Description |
|---|---|
void |
delete(byte[] row,
byte[][] columns)
Deletes specified columns of the specified row.
|
byte[] |
get(byte[] row,
byte[] column)
Read single column of a row
|
void |
increment(byte[] row,
Map<byte[],Long> increments)
Atomic increment of multiple columns of a row.
|
void |
increment(NavigableMap<byte[],NavigableMap<byte[],Long>> updates)
Batch increment multiple rows each with multiple columns and increments
|
long |
incrementAndGet(byte[] row,
byte[] column,
long delta)
Increment a single column of a row and return the new value.
|
void |
put(SortedMap<byte[],? extends SortedMap<byte[],Long>> updates)
Write multiple rows, each with multiple individual columns to write.
|
co.cask.cdap.api.dataset.table.Scanner |
scan(byte[] start,
byte[] stop,
FuzzyRowFilter filter)
Get a scanner for a table.
|
boolean |
swap(byte[] row,
byte[] column,
byte[] oldValue,
byte[] newValue)
Atomically compare a single column of a row with a expected value, and if it matches, replace it with a new value.
|
@Nullable byte[] get(byte[] row, byte[] column)
void put(SortedMap<byte[],? extends SortedMap<byte[],Long>> updates)
boolean swap(byte[] row,
byte[] column,
byte[] oldValue,
byte[] newValue)
oldValue - the expected value of the column. If null, this means that the column must not exist.newValue - the new value of the column. If null, the effect to delete the column if the comparison succeeds.void increment(byte[] row,
Map<byte[],Long> increments)
increments - Map from each column key to the value it should be incremented by.void increment(NavigableMap<byte[],NavigableMap<byte[],Long>> updates)
long incrementAndGet(byte[] row,
byte[] column,
long delta)
void delete(byte[] row,
byte[][] columns)
row - row to delete fromcolumns - names of columns to deleteco.cask.cdap.api.dataset.table.Scanner scan(@Nullable byte[] start, @Nullable byte[] stop, @Nullable FuzzyRowFilter filter)
start - the row key of the first row to scan. If null, the scan begins at the first row of the table.stop - the row key of the last row to scan. If null, the scan goes to the last row of the table.filter - if non-null, a fuzzy row filter used to efficiently skip over entire rows.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.