Examples of Tuple3


Examples of org.apache.crunch.Tuple3

  @Test
  @SuppressWarnings("rawtypes")
  public void testTriples() throws Exception {
    AvroType at = Avros.triples(Avros.strings(), Avros.strings(), Avros.strings());
    Tuple3 j = Tuple3.of("a", "b", "c");
    GenericData.Record w = new GenericData.Record(at.getSchema());
    w.put(0, new Utf8("a"));
    w.put(1, new Utf8("b"));
    w.put(2, new Utf8("c"));
    testInputOutputFn(at, j, w);
View Full Code Here

Examples of org.jinq.tuples.Tuple3

      switch(subreaders.length)
      {
         case 2:
            return (T)new Pair(data[0], data[1]);
         case 3:
            return (T)new Tuple3(data[0], data[1], data[2]);
         case 4:
            return (T)new Tuple4(data[0], data[1], data[2], data[3]);
         case 5:
            return (T)new Tuple5(data[0], data[1], data[2], data[3], data[4]);
         case 8:
View Full Code Here

Examples of org.jinq.tuples.Tuple3

      switch(subreaders.length)
      {
         case 2:
            return (T)new Pair(data[0], data[1]);
         case 3:
            return (T)new Tuple3(data[0], data[1], data[2]);
         case 4:
            return (T)new Tuple4(data[0], data[1], data[2], data[3]);
         case 5:
            return (T)new Tuple5(data[0], data[1], data[2], data[3], data[4]);
         case 8:
View Full Code Here

Examples of org.python.pydev.core.Tuple3

     * @throws MisconfigurationException
     */
    @SuppressWarnings("unchecked")
    protected void restoreSavedInfo(Object o) throws MisconfigurationException {
        synchronized (lock) {
            Tuple3 readFromFile = (Tuple3) o;
            SortedMap o1 = (SortedMap) readFromFile.o1;
            SortedMap o2 = (SortedMap) readFromFile.o2;

            this.topLevelInitialsToInfo = (SortedMap<String, Set<IInfo>>) o1;
            this.innerInitialsToInfo = (SortedMap<String, Set<IInfo>>) o2;
View Full Code Here

Examples of org.python.pydev.core.Tuple3

            InputStreamReader reader = new InputStreamReader(fileInputStream);
            FastBufferedReader bufferedReader = new FastBufferedReader(reader);
            FastStringBuffer string = bufferedReader.readLine();
            ObjectsPoolMap objectsPoolMap = new ObjectsPool.ObjectsPoolMap();
            if (string != null && string.startsWith("-- VERSION_")) {
                Tuple tupWithResults = new Tuple(new Tuple3(null, null, null), null);
                Tuple3 superTupWithResults = (Tuple3) tupWithResults.o1;
                //tupWithResults.o2 = DiskCache
                if (string.toString().equals(expected)) {
                    //OK, proceed with new I/O format!
                    try {
                        try {
View Full Code Here

Examples of org.python.pydev.core.Tuple3

    /**
     * @return a find definition scope visitor that has already found some definition
     */
    @SuppressWarnings("unchecked")
    private FindDefinitionModelVisitor getFindDefinitionsScopeVisitor(String rep, int line, int col) throws Exception {
        Tuple3 key = new Tuple3(rep, line, col);
        FindDefinitionModelVisitor visitor = this.findDefinitionVisitorCache.getObj(key);
        if (visitor == null) {
            visitor = new FindDefinitionModelVisitor(rep, line, col, this);
            if (ast != null) {
                try {
View Full Code Here

Examples of org.python.pydev.core.Tuple3

        if (onFindDefinition != null) {
            onFindDefinition.call(state);
        }
        final String actTok = state.getActivationToken();

        Object key = new Tuple3("findDefinition", this.getName(), actTok);
        if (!innerFindPaths.add(key)) {
            // We're already in the middle of this path, i.e.:
            //a = result.find
            //result = a
            //So, we can't go on this way as it'd recurse!
View Full Code Here

Examples of org.python.pydev.core.Tuple3

            int secondDecorationLocation) {
        synchronized (lock) {
            Object cacheKey = new Tuple4(key, decoration, decorationLocation, "imageDecoration");
            if (secondDecoration != null) {
                //Also add the second decoration to the cache key.
                cacheKey = new Tuple3(cacheKey, secondDecoration, secondDecorationLocation);
            }

            Image image = imageHash.get(cacheKey);
            if (image == null) {
                Display display = Display.getCurrent();
View Full Code Here

Examples of scala.Tuple3

      switch(subreaders.length)
      {
         case 2:
            return (T)new Tuple2(data[0], data[1]);
         case 3:
            return (T)new Tuple3(data[0], data[1], data[2]);
         case 4:
            return (T)new Tuple4(data[0], data[1], data[2], data[3]);
         case 5:
            return (T)new Tuple5(data[0], data[1], data[2], data[3], data[4]);
         case 8:
View Full Code Here

Examples of scala.Tuple3

      });

    List<Tuple3<Object, JavaPairRDD<String, Float>, JavaPairRDD<Query, Object>>> data =
      new ArrayList<>();

    data.add(new Tuple3(
      null,
      readings,
      jsc.parallelizePairs(new ArrayList<Tuple2<Query, Object>>())
    ));
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.