public LazyCsvInputChunk(IdType idType, int delimiter, Collector badCollector, Extractors extractors, Source_Chunk processingChunk, Configuration config, Decorator decorator, Header header) { this._idType = idType; this._badCollector = badCollector; this._extractors = extractors; this._delimiter = delimiter; this._processingChunk = processingChunk; this._config = config; this._decorator = decorator; this._header = header; }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public boolean nextChunk(org.neo4j.csv.reader.Source_Chunk chunk) throws java.io.IOException public override bool NextChunk(Source_Chunk chunk) { InputEntityArray entities = new InputEntityArray(_chunkSize); InputEntityVisitor decorated = _decorator.apply(entities); int cursor = 0; for ( ; cursor < _chunkSize && _parser.next(decorated); cursor++) { // just loop through and parse } if (cursor > 0) { (( EagerCsvInputChunk )chunk).Initialize(entities.ToArray()); return(true); } return(false); }
internal static CharSeeker Seeker(Source_Chunk chunk, Configuration config) { return(new BufferedCharSeeker(Source.singleChunk(chunk), config)); }