Interface CSVCopyable

All Superinterfaces:
Iterable<Atom>, MaterializedData, QueryableData, TermCompound, Writable
All Known Implementing Classes:
RDBMSStore

public interface CSVCopyable extends MaterializedData, Writable
This interface represents storage systems that can directly import CSV files as part of their implementation.
  • Method Details

    • copy

      boolean copy(String csvFilePath, char separator, int headerSize, Atom witness) throws Exception
      Copy the content of the given CSV file into the storage system The exact layout of the resulting storage is dependent on the implementation
      Parameters:
      csvFilePath - the csv file to copy
      separator - separator char of the CSV
      headerSize - size of the CSV header
      witness - atom used to pre-create the storing schema
      Returns:
      true iff at least one atom have been added by the copy
      Throws:
      Exception - if an error occur