コード例 #1
0
  private RowModel mapsParsedRowToRowModel(
      List<ParsedColumnMetadata> metaData,
      ParsedRow parsedRow,
      ComparatorType keyType,
      GenericTypeEnum[] typesBelongingCompositeTypeForKeyType,
      ComparatorType comparatorType,
      GenericTypeEnum[] typesBelongingCompositeTypeForComparatorType,
      ComparatorType subComparatorType,
      ComparatorType defaultColumnValueType) {
    RowModel row = new RowModel();

    row.setKey(
        TypeExtractor.constructGenericType(
            parsedRow.getKey(), keyType, typesBelongingCompositeTypeForKeyType));

    row.setColumns(
        mapParsedColumnsToColumnsModel(
            metaData,
            parsedRow.getColumns(),
            comparatorType,
            typesBelongingCompositeTypeForComparatorType,
            defaultColumnValueType));
    row.setSuperColumns(
        mapParsedSuperColumnsToSuperColumnsModel(
            metaData,
            parsedRow.getSuperColumns(),
            comparatorType,
            subComparatorType,
            defaultColumnValueType));
    return row;
  }