示例#1
0
 public EagerParserChunker(CharReadable reader, IdType idType, Header header, Collector badCollector, Extractors extractors, int chunkSize, Configuration config, Decorator decorator)
 {
     this._chunkSize = chunkSize;
     this._decorator = decorator;
     this._seeker    = charSeeker(reader, config, true);
     this._parser    = new CsvInputParser(_seeker, config.delimiter(), idType, header, badCollector, extractors);
 }
示例#2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean fillFrom(org.neo4j.csv.reader.Chunker chunker) throws java.io.IOException
        public override bool FillFrom(Chunker chunker)
        {
            if (chunker.NextChunk(_processingChunk))
            {
                CloseCurrentParser();
                this._visitor = null;
                this._parser  = new CsvInputParser(seeker(_processingChunk, _config), _delimiter, _idType, _header.clone(), _badCollector, _extractors);
                return(_header.entries().Length != 0);
            }
            return(false);
        }