public CsvTable create()

in src/main/java/net/hydromatic/optiq/impl/csv/CsvTableFactory.java [39:51]


  public CsvTable create(SchemaPlus schema, String name,
      Map<String, Object> map, RelDataType rowType) {
    String fileName = (String) map.get("file");
    Boolean smart = (Boolean) map.get("smart");
    final File file = new File(fileName);
    final RelProtoDataType protoRowType =
        rowType != null ? RelDataTypeImpl.proto(rowType) : null;
    if (smart != null && smart) {
      return new CsvSmartTable(file, protoRowType);
    } else {
      return new CsvTable(file, protoRowType);
    }
  }