Examples of ListType


Examples of com.odiago.flumebase.lang.ListType

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

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

Examples of com.odiago.flumebase.lang.ListType

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

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

Examples of com.odiago.flumebase.lang.ListType

    return Collections.emptyList();
  }

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

Examples of com.odiago.flumebase.lang.ListType

    }
  }

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

Examples of com.odiago.flumebase.lang.ListType

  @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

Examples of com.odiago.flumebase.lang.ListType

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

Examples of com.sun.msv.datatype.xsd.ListType

    } catch( GenerationException ge ) { return null; }
  }
   
  protected String generateList(XSDatatypeImpl dti, ContextProviderImpl context) {
    try {
      ListType base = (ListType)dti.getConcreteType();
      LengthFacet lf = (LengthFacet)dti.getFacetObject(XSDatatype.FACET_LENGTH);
      int n;  // compute # of items into this value.
   
      if(lf!=null) {
        n = lf.length;
View Full Code Here

Examples of com.sun.msv.datatype.xsd.ListType

     * serializes a list type.
     * this method is called by serializeDataType method.
     */
    protected void serializeListType(XSDatatypeImpl dt) {

        ListType base = (ListType)dt.getConcreteType();

        if (dt.getFacetObject(XSDatatype.FACET_LENGTH) != null) {
            // with the length facet.
            int len = ((LengthFacet)dt.getFacetObject(XSDatatype.FACET_LENGTH)).length;
            writer.start("list");
View Full Code Here

Examples of com.sun.msv.datatype.xsd.ListType

     * serializes a list type.
     * this method is called by serializeDataType method.
     */
    protected void serializeListType(XSDatatypeImpl dt) {

        ListType base = (ListType)dt.getConcreteType();

        if (dt.getFacetObject(XSDatatype.FACET_LENGTH) != null) {
            // with the length facet.
            int len = ((LengthFacet)dt.getFacetObject(XSDatatype.FACET_LENGTH)).length;
            writer.start("list");
View Full Code Here

Examples of org.apache.cassandra.db.marshal.ListType

        }

        if (!(column.type instanceof ListType))
            throw new InvalidRequestException(String.format("Invalid operation, %s is not of list type", column.name));

        ListType lt = (ListType)column.type;
        if (kind == Kind.SET_IDX)
        {
            assert values.size() == 2;
            Term idx = values.get(0);
            Term value = values.get(1);
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.