Examples of upperBound()


Examples of org.apache.cassandra.dht.Token.upperBound()

             *     tokens and keys at the same time in a range, we uses 15.upperBoundKey() to have A include all
             *     keys having 15 as token and B include none of those (since that is what our node owns).
             * asSplitValue() abstracts that choice.
             */
            Token upperBoundToken = ringIter.next();
            T upperBound = (T)upperBoundToken.upperBound(queryRange.left.getClass());
            if (!remainder.left.equals(upperBound) && !remainder.contains(upperBound))
                // no more splits
                break;
            Pair<AbstractBounds<T>,AbstractBounds<T>> splits = remainder.split(upperBound);
            if (splits == null)
View Full Code Here

Examples of org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.upperBound()

      finally {
      }

      // can't find higher
      try {
        scanner.upperBound("keyA".getBytes());
        Assert.fail("Cannot search higher in a unsorted TFile!");
      }
      catch (Exception e) {
        // noop, expecting excetions
      }
View Full Code Here

Examples of org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.upperBound()

    readKey = readKey(scanner);
    assertTrue("seeked key does not match", Arrays.equals(readKey,
        getSomeKey(50)));

    // check for upper bound
    scanner.upperBound(getSomeKey(50));
    assertTrue("location lookup failed", scanner.currentLocation
        .compareTo(reader.end()) < 0);
    readKey = readKey(scanner);
    assertTrue("seeked key does not match", Arrays.equals(readKey,
        getSomeKey(51)));
View Full Code Here

Examples of org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.upperBound()

      finally {
      }

      // can't find higher
      try {
        scanner.upperBound("keyA".getBytes());
        Assert.fail("Cannot search higher in a unsorted TFile!");
      }
      catch (Exception e) {
        // noop, expecting excetions
      }
View Full Code Here

Examples of org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.upperBound()

    readKey = readKey(scanner);
    assertTrue("seeked key does not match", Arrays.equals(readKey,
        getSomeKey(50)));

    // check for upper bound
    scanner.upperBound(getSomeKey(50));
    assertTrue("location lookup failed", scanner.currentLocation
        .compareTo(reader.end()) < 0);
    readKey = readKey(scanner);
    assertTrue("seeked key does not match", Arrays.equals(readKey,
        getSomeKey(51)));
View Full Code Here

Examples of org.apache.hadoop.zebra.tfile.TFile.Reader.Scanner.upperBound()

      finally {
      }

      // can't find higher
      try {
        scanner.upperBound("keyA".getBytes());
        Assert.fail("Cannot search higher in a unsorted TFile!");
      }
      catch (Exception e) {
        // noop, expecting excetions
      }
View Full Code Here

Examples of org.apache.hadoop.zebra.tfile.TFile.Reader.Scanner.upperBound()

    readKey = readKey(scanner);
    assertTrue("seeked key does not match", Arrays.equals(readKey,
        getSomeKey(50)));

    // check for upper bound
    scanner.upperBound(getSomeKey(50));
    assertTrue("location lookup failed", scanner.currentLocation
        .compareTo(reader.end()) < 0);
    readKey = readKey(scanner);
    assertTrue("seeked key does not match", Arrays.equals(readKey,
        getSomeKey(51)));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding.upperBound()

        }
      }
    } else if (typeBinding.isTypeVariable()
        && ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0)) {
      TypeVariableBinding typeVariableBinding = (TypeVariableBinding) typeBinding;
      TypeBinding upperBound = typeVariableBinding.upperBound();
      if (upperBound != null && ((upperBound.tagBits & TagBits.ContainsNestedTypeReferences) != 0)) {
        recordNestedType(classFile, upperBound);
      }
      TypeBinding[] upperBounds = typeVariableBinding.otherUpperBounds();
      if (upperBounds != null) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding.upperBound()

    TypeVariableBinding typeVariableBinding = (TypeVariableBinding) this._binding;
    TypeBinding firstBound = typeVariableBinding.firstBound;
    ReferenceBinding[] superInterfaces = typeVariableBinding.superInterfaces;
    if (firstBound == null || superInterfaces.length == 0) {
      // no explicit bound
      return _env.getFactory().newTypeMirror(typeVariableBinding.upperBound());
    }
    if (firstBound != null && superInterfaces.length == 1 && superInterfaces[0] == firstBound) {
      // only one bound that is an interface
      return _env.getFactory().newTypeMirror(typeVariableBinding.upperBound());
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding.upperBound()

      // no explicit bound
      return _env.getFactory().newTypeMirror(typeVariableBinding.upperBound());
    }
    if (firstBound != null && superInterfaces.length == 1 && superInterfaces[0] == firstBound) {
      // only one bound that is an interface
      return _env.getFactory().newTypeMirror(typeVariableBinding.upperBound());
    }
    return this._env.getFactory().newDeclaredType((TypeVariableBinding) this._binding);
  }

  /* (non-Javadoc)
 
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.