Codota Logo
CubeQuery$Builder$Build
Code IndexAdd Codota to your IDE (free)

How to use
CubeQuery$Builder$Build
in
co.cask.cdap.api.dataset.lib.cube

Best Java code snippets using co.cask.cdap.api.dataset.lib.cube.CubeQuery$Builder$Build (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: caskdata/cdap

private void verifyCountQuery(Cube cube, String aggregation, long startTs, long endTs, int resolution,
               String measureName, AggregationFunction aggFunction,
               Map<String, String> dimValues, List<String> groupByDims,
               Collection<TimeSeries> expected, Interpolator interpolator) throws Exception {
 CubeQuery query = CubeQuery.builder()
  .select()
   .measurement(measureName, aggFunction)
  .from(aggregation).resolution(resolution, TimeUnit.SECONDS)
  .where()
   .dimensions(dimValues)
   .timeRange(startTs, endTs)
  .groupBy()
   .dimensions(groupByDims)
  .limit(Integer.MAX_VALUE)
  .interpolator(interpolator)
  .build();
 Collection<TimeSeries> result = cube.query(query);
 Assert.assertEquals(String.format("expected: %s, found: %s", expected, result), expected.size(), result.size());
 Assert.assertTrue(String.format("expected: %s, found: %s", expected, result), expected.containsAll(result));
}
origin: cdapio/cdap

/**
 * Sets {@link Interpolator} to use for {@link CubeQuery}.
 * @param interpolator interpolator to use
 * @return builder for configuring {@link CubeQuery}
 */
public Build interpolator(Interpolator interpolator) {
 Builder.this.interpolator = interpolator;
 return new Build();
}
co.cask.cdap.api.dataset.lib.cubeCubeQuery$Builder$Build

Javadoc

Builder for configuring CubeQuery.

Most used methods

  • <init>
  • build

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • BoxLayout (javax.swing)
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