Interface CSVCopyable
- All Superinterfaces:
Iterable<Atom>, MaterializedData, QueryableData, TermCompound, Writable
- All Known Implementing Classes:
RDBMSStore
This interface represents storage systems that can directly import CSV files as part of their implementation.
-
Method Summary
Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface MaterializedData
contains, getAtomsByPredicate, getAtomsByTerm, getAtomSet, getTermsByPredicatePosition, isEmpty, iterator, size, streamMethods inherited from interface QueryableData
estimateBound, estimateBound, evaluate, evaluate, getAtomicPattern, getPredicates, getSupportedOperations, hasPredicateMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getTerms, getVariables
-
Method Details
-
copy
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 copyseparator- separator char of the CSVheaderSize- size of the CSV headerwitness- 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
-