Example usage for org.apache.solr.client.solrj.io.stream.expr StreamFactory constructStream

List of usage examples for org.apache.solr.client.solrj.io.stream.expr StreamFactory constructStream

Introduction

In this page you can find the example usage for org.apache.solr.client.solrj.io.stream.expr StreamFactory constructStream.

Prototype

public TupleStream constructStream(StreamExpression expression) throws IOException 

Source Link

Usage

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();
}