APISonar


org.apache.pinot.spi.data.readers.FileFormat.CSV

> org > apache > pinot > spi > data > readers > FileFormat > CSV
org APIs apache APIs pinot APIs spi APIs data APIs readers APIs FileFormat APIs CSV APIs

Example 1
protected FileFormat getFileFormat(String fileName) {
    if (fileName.endsWith(".avro")) {
      return FileFormat.AVRO;
    }
    if (fileName.endsWith(".csv")) {
      return FileFormat.CSV;
    }
    if (fileName.endsWith(".json")) {
      return FileFormat.JSON;
    }
    if (fileName.endsWith(".thrift")) {
      return FileFormat.THRIFT;
    }
    throw new IllegalArgumentException("Unsupported file format: {}" + fileName);
  }