List of usage examples for org.apache.solr.client.solrj.io.stream.expr StreamFactory constructStream
public TupleStream constructStream(StreamExpression expression) throws IOException
From source file:org.deeplearning4j.nn.dataimport.solr.client.solrj.io.stream.TupleStreamDataSetIterator.java
License:Apache License
public TupleStreamDataSetIterator(int batch, String idKey, String[] featureKeys, String[] labelKeys, StreamFactory streamFactory, String expression, StreamContext streamContext) throws IOException { this.batch = batch; this.idKey = idKey; this.featureKeys = featureKeys; this.labelKeys = labelKeys; this.streamContext = streamContext; this.tupleStream = streamFactory.constructStream(expression); this.tupleStream.setStreamContext(streamContext); this.tupleStream.open(); this.tuple = this.tupleStream.read(); }