Codota Logo
CounterTimeseriesTable.write
Code IndexAdd Codota to your IDE (free)

How to use
write
method
in
co.cask.cdap.api.dataset.lib.CounterTimeseriesTable

Best Java code snippets using co.cask.cdap.api.dataset.lib.CounterTimeseriesTable.write (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: cdapio/cdap

/**
 * Set the value for a counter.
 *
 * @param counter the name of the counter to set
 * @param value the value to set
 * @param timestamp timestamp of the entry
 * @param tags optional list of tags associated with the counter. See {@link TimeseriesTable} class description
 *             for more details.
 */
@WriteOnly
public void set(byte[] counter, long value, long timestamp, byte[]... tags) {
 write(counter, Bytes.toBytes(value), timestamp, tags);
}
co.cask.cdap.api.dataset.libCounterTimeseriesTablewrite

Popular methods of CounterTimeseriesTable

  • read
    Reads entries for a given time range and returns an Iterator. NOTE: A limit is placed on the max num
  • <init>
    Creates an instance of the DataSet.
  • increment
    Increments the value for a counter for a row and timestamp.
  • internalIncrement
  • readInternal
  • set
    Set the value for a counter.

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now