Package com.odiago.flumebase.lang

Examples of com.odiago.flumebase.lang.ListType


  }

  @Override
  public List<Type> getArgumentTypes() {
    List<Type> args = new ArrayList<Type>();
    args.add(new NullableType(new ListType(mArgType)));
    args.add(Type.getPrimitive(Type.TypeName.INT));
    return args;
  }
View Full Code Here


  }

  @Override
  public List<Type> getArgumentTypes() {
    List<Type> args = new ArrayList<Type>();
    args.add(new NullableType(new ListType(mArgType)));
    args.add(mArgType);
    return args;
  }
View Full Code Here

    mArgType.addConstraint(Type.getNullable(Type.TypeName.TYPECLASS_ANY));
  }

  @Override
  public Type getReturnType() {
    return new ListType(mArgType);
  }
View Full Code Here

    mArgType.addConstraint(Type.getNullable(Type.TypeName.TYPECLASS_ANY));
  }

  @Override
  public Type getReturnType() {
    return new NullableType(new ListType(mArgType));
  }
View Full Code Here

    return Collections.emptyList();
  }

  @Override
  public List<Type> getVarArgTypes() {
    return Collections.singletonList((Type) new NullableType(new ListType(mArgType)));
  }
View Full Code Here

    }
  }

  @Override
  public List<Type> getArgumentTypes() {
    return Collections.singletonList((Type) new NullableType(new ListType(mArgType)));
  }
View Full Code Here

  @Test
  public void testListCol() throws IOException, InterruptedException {
    MemStreamBuilder streamBuilder = new MemStreamBuilder("s");

    streamBuilder.addField(new TypedField("a",
        new NullableType(new ListType(Type.getPrimitive(Type.TypeName.INT)))));
    streamBuilder.addField(new TypedField("b", Type.getNullable(Type.TypeName.INT)));
    Event e = new EventImpl("1|2|3,4".getBytes());
    streamBuilder.addEvent(e);
    StreamSymbol stream = streamBuilder.build();
View Full Code Here

        // If the unresolved typevar is an argument to a list type, we can
        // return this -- it's going to be an empty list, so we can return
        // LIST<NULL>
        // TODO(aaron): This allows to_list() to produce an empty list, but
        // putting this check here feels a bit like a hack to me.
        mReturnType = new ListType(Type.getNullable(Type.TypeName.NULL));
      } else {
        // This fails for being too abstract.
        throw new TypeCheckException("Output type of function " + mFunctionName
            + " is an unresolved UniversalType: " + fnRetType, tce);
      }
View Full Code Here

TOP

Related Classes of com.odiago.flumebase.lang.ListType

Copyright © 2018 www.massapicom. 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.