Examples of GroupType


Examples of org.pentaho.reporting.engine.classic.wizard.model.GroupType

  private GroupType parseGroupType(final String s)
  {
    final GroupType[] types = GroupType.values();
    for (int i = 0; i < types.length; i++)
    {
      final GroupType type = types[i];
      if (type.getType().equals(s))
      {
        return type;
      }
    }
    return GroupType.RELATIONAL;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.GroupType

      final String groupTotalsLabel = definition.getGroupTotalsLabel();
      if (groupTotalsLabel != null)
      {
        attList.setAttribute(WizardCoreModule.NAMESPACE, "group-totals-label", String.valueOf(groupTotalsLabel));
      }
      final GroupType groupType = definition.getGroupType();
      attList.setAttribute(WizardCoreModule.NAMESPACE, "group-type", groupType.getType());

      xmlWriter.writeTag(WizardCoreModule.NAMESPACE, "group-definition", attList, XmlWriter.CLOSE);

    }
    catch (BeanException e)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.GroupType

    final GroupDefinition[] groupDefinitions = wizardSpecification.getGroupDefinitions();
    for (int i = 0; i < groupDefinitions.length; i++)
    {
      final GroupDefinition groupDefinition = groupDefinitions[i];
      final GroupType type = groupDefinition.getGroupType();
      if (type != null && GroupType.RELATIONAL.equals(type) == false)
      {
        continue;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.GroupType

  {
    final GroupDefinition[] groupDefinitions = wizardSpecification.getGroupDefinitions();
    for (int i = 0; i < groupDefinitions.length; i++)
    {
      final GroupDefinition groupDefinition = groupDefinitions[i];
      final GroupType groupType = groupDefinition.getGroupType();
      if (GroupType.CT_COLUMN.equals(groupType) ||
          GroupType.CT_ROW.equals(groupType))
      {
        return true;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.GroupType

  private GroupType parseGroupType(final String s)
  {
    final GroupType[] types = GroupType.values();
    for (int i = 0; i < types.length; i++)
    {
      final GroupType type = types[i];
      if (type.getType().equals(s))
      {
        return type;
      }
    }
    return GroupType.RELATIONAL;
View Full Code Here

Examples of parquet.schema.GroupType

  // An optional group containing a repeated anonymous group "bag", containing
  // 1 anonymous element "array_element"
  private static GroupType convertArrayType(final String name, final ListTypeInfo typeInfo) {
    final TypeInfo subType = typeInfo.getListElementTypeInfo();
    return listWrapper(name, OriginalType.LIST, new GroupType(Repetition.REPEATED,
        ParquetHiveSerDe.ARRAY.toString(), convertType("array_element", subType)));
  }
View Full Code Here

Examples of parquet.schema.GroupType

  // An optional group containing multiple elements
  private static GroupType convertStructType(final String name, final StructTypeInfo typeInfo) {
    final List<String> columnNames = typeInfo.getAllStructFieldNames();
    final List<TypeInfo> columnTypes = typeInfo.getAllStructFieldTypeInfos();
    return new GroupType(Repetition.OPTIONAL, name, convertTypes(columnNames, columnTypes));

  }
View Full Code Here

Examples of parquet.schema.GroupType

    final Type keyType = convertType(ParquetHiveSerDe.MAP_KEY.toString(),
        typeInfo.getMapKeyTypeInfo(), Repetition.REQUIRED);
    final Type valueType = convertType(ParquetHiveSerDe.MAP_VALUE.toString(),
        typeInfo.getMapValueTypeInfo());
    return listWrapper(name, OriginalType.MAP_KEY_VALUE,
        new GroupType(Repetition.REPEATED, ParquetHiveSerDe.MAP.toString(), keyType, valueType));
  }
View Full Code Here

Examples of parquet.schema.GroupType

        new GroupType(Repetition.REPEATED, ParquetHiveSerDe.MAP.toString(), keyType, valueType));
  }

  private static GroupType listWrapper(final String name, final OriginalType originalType,
      final GroupType groupType) {
    return new GroupType(Repetition.OPTIONAL, name, originalType, groupType);
  }
View Full Code Here

Examples of parquet.schema.GroupType

  public static void main(String[] args) {
    MessageType message1;
    MessageType message2;

    PrimitiveType c = new PrimitiveType(Repetition.OPTIONAL, PrimitiveTypeName.INT32, "c");
    GroupType b = new GroupType(Repetition.REQUIRED, "b");
    GroupType a = new GroupType(Repetition.OPTIONAL, "a", b);
    message1 = new MessageType("root", a);

    PrimitiveType c2 = new PrimitiveType(Repetition.OPTIONAL, PrimitiveTypeName.INT32, "d");
    GroupType b2 = new GroupType(Repetition.OPTIONAL, "b", c2);
    GroupType a2 = new GroupType(Repetition.OPTIONAL, "a", b2);
    message2 = new MessageType("root", a2);

    MessageType message3 = message1.union(message2);

    StringBuilder builder = new StringBuilder();
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.