Codota Logo
GTInfo.builder
Code IndexAdd Codota to your IDE (free)

How to use
builder
method
in
org.apache.kylin.gridtable.GTInfo

Best Java code snippets using org.apache.kylin.gridtable.GTInfo.builder (Showing top 19 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: apache/kylin

return GTInfo.builder().setCodeSystem(codeSystem).//
origin: apache/kylin

public GTScannerBenchmark() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  DataType tint = DataType.getType("int4");
  DataType tlong = DataType.getType("long8");
  builder.setColumns(tint, tint, tint, tint, tint, tlong, tlong);
  builder.setPrimaryKey(ImmutableBitSet.valueOf(0, 1, 2, 3, 4));
  info = builder.build();
  gen = new SortedGTRecordGenerator(info);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(100, 4, null);
  gen.addMeasure(8);
  gen.addMeasure(8);
  // warm up
  long t = System.currentTimeMillis();
  testGenerate();
  genTime = System.currentTimeMillis() - t;
}
origin: apache/kylin

private static GTInfo newInfo() {
  GTInfo.Builder builder = GTInfo.builder();
  builder.setColumns(//
      DataType.getType("date"), //
      DataType.getType("string"), //
      DataType.getType("decimal"), //
      DataType.getType("decimal") // for runtime aggregation
  );
  return newInfo(builder);
}
origin: apache/kylin

private static Builder infoBuilder() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  builder.setColumns(//
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("bigint"), //
      DataType.getType("decimal") //
  );
  builder.setPrimaryKey(setOf(0));
  builder.setColumnPreferIndex(setOf(0));
  return builder;
}
origin: apache/kylin

public static GTInfo newGTInfo(Cuboid cuboid, IDimensionEncodingMap dimEncMap) {
  CuboidToGridTableMapping mapping = new CuboidToGridTableMapping(cuboid);
  GTInfo.Builder builder = GTInfo.builder();
  builder.setTableName("Cuboid " + cuboid.getId());
  builder.setCodeSystem(
      new CubeCodeSystem(mapping.getDimensionEncodings(dimEncMap), mapping.getDependentMetricsMap()));
  builder.setColumns(mapping.getDataTypes());
  builder.setPrimaryKey(mapping.getPrimaryKey());
  builder.enableColumnBlock(mapping.getColumnBlocks());
  return builder.build();
}
origin: apache/kylin

public GTScannerBenchmark2() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  DataType tint = DataType.getType("int4");
origin: apache/kylin

public static GTInfo hllInfo() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  builder.setColumns(//
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("bigint"), //
      DataType.getType("decimal"), //
      DataType.getType("hllc14") //
  );
  builder.setPrimaryKey(setOf(0));
  builder.setColumnPreferIndex(setOf(0));
  return builder.build();
}
origin: apache/kylin

  public static GTInfo newGTInfo(Cuboid cuboid, IDimensionEncodingMap dimEncMap, CuboidToGridTableMapping mapping) {
    GTInfo.Builder builder = GTInfo.builder();
    builder.setTableName("Cuboid " + cuboid.getId());
    builder.setCodeSystem(
        new CubeCodeSystem(mapping.getDimensionEncodings(dimEncMap), mapping.getDependentMetricsMap()));
    builder.setColumns(mapping.getDataTypes());
    builder.setPrimaryKey(mapping.getPrimaryKey());
    builder.enableColumnBlock(mapping.getColumnBlocks());
    if (mapping instanceof CuboidToGridTableMappingExt) {
      builder.enableDynamicDims(((CuboidToGridTableMappingExt) mapping).getDynamicDims());
    }
    return builder.build();
  }
}
origin: apache/kylin

public HBaseScannerBenchmark() throws IOException {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  DataType tint = DataType.getType("int4");
  DataType tlong = DataType.getType("long8");
  builder.setColumns(tint, tint, tint, tint, tint, tlong, tlong);
  builder.setPrimaryKey(ImmutableBitSet.valueOf(0, 1, 2, 3, 4));
  info = builder.build();
  gen = new SortedGTRecordGenerator(info);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(100, 4, null);
  gen.addMeasure(8);
  gen.addMeasure(8);
  simpleStore = new SimpleHBaseStore(info, htableName);
}
origin: apache/kylin

@Test
public void testVisitCubeWithRuntimeDimensions() throws Exception {
  GTInfo.Builder builder = GTInfo.builder();
origin: apache/kylin

static GTInfo newInfo() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(newDictCodeSystem());
  builder.setColumns(//
      DataType.getType("timestamp"), //
      DataType.getType("integer"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("bigint"), //
      DataType.getType("decimal") //
  );
  builder.setPrimaryKey(setOf(0, 1));
  builder.setColumnPreferIndex(setOf(0));
  builder.enableColumnBlock(new ImmutableBitSet[] { setOf(0, 1), setOf(2), setOf(3, 4) });
  builder.enableRowBlock(4);
  GTInfo info = builder.build();
  return info;
}
origin: org.apache.kylin/kylin-core-cube

return GTInfo.builder().setCodeSystem(codeSystem).//
origin: org.apache.kylin/kylin-core-cube

public GTScannerBenchmark() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  DataType tint = DataType.getType("int4");
  DataType tlong = DataType.getType("long8");
  builder.setColumns(tint, tint, tint, tint, tint, tlong, tlong);
  builder.setPrimaryKey(ImmutableBitSet.valueOf(0, 1, 2, 3, 4));
  info = builder.build();
  gen = new SortedGTRecordGenerator(info);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(100, 4, null);
  gen.addMeasure(8);
  gen.addMeasure(8);
  // warm up
  long t = System.currentTimeMillis();
  testGenerate();
  genTime = System.currentTimeMillis() - t;
}
origin: org.apache.kylin/kylin-core-cube

private static Builder infoBuilder() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  builder.setColumns(//
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("bigint"), //
      DataType.getType("decimal") //
  );
  builder.setPrimaryKey(setOf(0));
  builder.setColumnPreferIndex(setOf(0));
  return builder;
}
origin: org.apache.kylin/kylin-core-cube

public static GTInfo newGTInfo(Cuboid cuboid, IDimensionEncodingMap dimEncMap) {
  CuboidToGridTableMapping mapping = new CuboidToGridTableMapping(cuboid);
  GTInfo.Builder builder = GTInfo.builder();
  builder.setTableName("Cuboid " + cuboid.getId());
  builder.setCodeSystem(
      new CubeCodeSystem(mapping.getDimensionEncodings(dimEncMap), mapping.getDependentMetricsMap()));
  builder.setColumns(mapping.getDataTypes());
  builder.setPrimaryKey(mapping.getPrimaryKey());
  builder.enableColumnBlock(mapping.getColumnBlocks());
  return builder.build();
}
origin: org.apache.kylin/kylin-core-cube

public GTScannerBenchmark2() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  DataType tint = DataType.getType("int4");
origin: org.apache.kylin/kylin-core-cube

public static GTInfo hllInfo() {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  builder.setColumns(//
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("varchar(10)"), //
      DataType.getType("bigint"), //
      DataType.getType("decimal"), //
      DataType.getType("hllc14") //
  );
  builder.setPrimaryKey(setOf(0));
  builder.setColumnPreferIndex(setOf(0));
  return builder.build();
}
origin: org.apache.kylin/kylin-core-cube

  public static GTInfo newGTInfo(Cuboid cuboid, IDimensionEncodingMap dimEncMap, CuboidToGridTableMapping mapping) {
    GTInfo.Builder builder = GTInfo.builder();
    builder.setTableName("Cuboid " + cuboid.getId());
    builder.setCodeSystem(
        new CubeCodeSystem(mapping.getDimensionEncodings(dimEncMap), mapping.getDependentMetricsMap()));
    builder.setColumns(mapping.getDataTypes());
    builder.setPrimaryKey(mapping.getPrimaryKey());
    builder.enableColumnBlock(mapping.getColumnBlocks());
    if (mapping instanceof CuboidToGridTableMappingExt) {
      builder.enableDynamicDims(((CuboidToGridTableMappingExt) mapping).getDynamicDims());
    }
    return builder.build();
  }
}
origin: org.apache.kylin/kylin-storage-hbase

public HBaseScannerBenchmark() throws IOException {
  Builder builder = GTInfo.builder();
  builder.setCodeSystem(new GTSampleCodeSystem());
  DataType tint = DataType.getType("int4");
  DataType tlong = DataType.getType("long8");
  builder.setColumns(tint, tint, tint, tint, tint, tlong, tlong);
  builder.setPrimaryKey(ImmutableBitSet.valueOf(0, 1, 2, 3, 4));
  info = builder.build();
  gen = new SortedGTRecordGenerator(info);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(10, 4, null);
  gen.addDimension(100, 4, null);
  gen.addMeasure(8);
  gen.addMeasure(8);
  simpleStore = new SimpleHBaseStore(info, htableName);
}
org.apache.kylin.gridtableGTInfobuilder

Popular methods of GTInfo

  • getPrimaryKey
  • colRef
  • getCodeSystem
  • getMaxColumnLength
  • getMaxRecordLength
  • <init>
  • getAllColumns
  • getColumnBlock
  • getColumnBlockCount
  • getColumnCount
  • getColumnType
  • getDynamicDims
  • getColumnType,
  • getDynamicDims,
  • getRowBlockSize,
  • getTableName,
  • isRowBlockEnabled,
  • selectColumnBlocks,
  • selectColumns,
  • validate,
  • validateColRef

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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