Package com.odiago.flumebase.lang

Examples of com.odiago.flumebase.lang.NullableType


  }

  @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 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

TOP

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

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.