Examples of HBaseConfiguration


Examples of org.apache.hadoop.hbase.HBaseConfiguration

    IdxIndexDescriptor indexDescriptor
      = new IdxIndexDescriptor(qualLong, IdxQualifierType.LONG);

    // Setting up region
    String method = "testIndexedScanWithStartRow";
    initIdxRegion(tableName, method, new HBaseConfiguration(),
      Pair.of(family, new IdxIndexDescriptor[]{indexDescriptor}));

    for (long i = 1; i <= 100; i++) {
      byte[] row = Bytes.toBytes(i);
      Put put = new Put(row);
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

      = new IdxIndexDescriptor(qualLong, IdxQualifierType.LONG);
    byte[] row1 = Bytes.toBytes("row1");

    //Setting up region
    String method = "testIndexedScanWithOneRow";
    initIdxRegion(tableName, method, new HBaseConfiguration(),
      Pair.of(family, new IdxIndexDescriptor[]{indexDescriptor}));

    Put put = new Put(row1);
    put.add(family, qualLong, Bytes.toBytes(42L));
    region.put(put);
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    Random random = new Random(1431974L)// pseudo random order of row insertions

    //Setting up region
    String method = "testIndexedScanWithOneRow";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor}));
    for (long i = 0; i < numRows; i++) {
      Put put = new Put(Bytes.toBytes(random.nextLong() + "." + i));
      put.add(family, qualLong, Bytes.toBytes(i));
      region.put(put);
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    Random random = new Random(24122008L)// pseudo random order of row insertions

    //Setting up region
    String method = "testIndexedScanWithThreeColumns";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor1, indexDescriptor2, indexDescriptor3}));
    for (long i = 0; i < numRows; i++) {
      Put put = new Put(Bytes.toBytes(random.nextLong() + "." + i));
      put.add(family, qualLong, Bytes.toBytes(i));
      put.add(family, qualDouble, Bytes.toBytes((double) i));
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    IdxIndexDescriptor indexDescriptor1 = new IdxIndexDescriptor(qualLong, IdxQualifierType.LONG);
    IdxIndexDescriptor indexDescriptor2 = new IdxIndexDescriptor(qualDouble, IdxQualifierType.DOUBLE);
    IdxIndexDescriptor indexDescriptor3 = new IdxIndexDescriptor(qualBytes, IdxQualifierType.BYTE_ARRAY);

    String method = "testIndexedScanWithTwoFamilies";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family1,
      new IdxIndexDescriptor[]{indexDescriptor1, indexDescriptor2}),
      Pair.of(family2, new IdxIndexDescriptor[]{indexDescriptor3}));

    int numberOfRows = 1000;
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    Random random = new Random(27101973L)// pseudo random order of row insertions

    //Setting up region
    String method = "testIndexedScanWithMultipleVersions";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor1, indexDescriptor2}));
    for (long i = 0; i < numRows; i++) {
      Put put = new Put(Bytes.toBytes(random.nextLong() + "." + i));
      long value = i % 10;
      put.add(family, qualLong, Bytes.toBytes(value));
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    long timestamp = 0;

    //Setting up region
    String method = "testIndexedScanWithDeletedRows";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor1, indexDescriptor2}));
    for (long i = 0; i < numRows; i++) {
      Put put = new Put(Bytes.toBytes(random.nextLong() + "." + i));
      long value = i % 10;
      put.add(family, qualLong, timestamp, Bytes.toBytes(value));
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

      IdxQualifierType.LONG);
    int numRows = 1000;

    //Setting up region
    String method = "testIdxRegionSplit";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor}));
    for (long i = 0; i < numRows; i++) {
      Put put = new Put(Bytes.toBytes(String.format("%08d", i)));
      put.add(family, qualLong, Bytes.toBytes(i));
      region.put(put);
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    int numRows = 1000;
    int flushInterval = numRows / 5 + 1;

    //Setting up region
    String method = "testIdxRegionCompaction_" + majorcompaction;
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor}));
    for (long i = 0; i < numRows; i++) {
      Put put = new Put(Bytes.toBytes(String.format("%08d", i)));
      put.add(family, qualLong, Bytes.toBytes(i));
      region.put(put);
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseConfiguration

    int numRows = 1000;
    int flushAndScanInterval = 10;
    int compactInterval = 10 * flushAndScanInterval;

    String method = "testFlushCacheWhileScanning";
    initIdxRegion(tableName, method, new HBaseConfiguration(), Pair.of(family,
      new IdxIndexDescriptor[]{indexDescriptor}));
    FlushThread flushThread = new FlushThread();
    flushThread.start();

    IdxScan idxScan = new IdxScan();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.