mirror of https://github.com/apache/lucene.git
SOLR-11490: Add missing @since tags
To all descendants of TupleStream
This commit is contained in:
parent
18c8091da5
commit
70784f4561
|
@ -30,6 +30,7 @@ import org.apache.solr.client.solrj.io.stream.JDBCStream;
|
|||
* Used with o.a.s.Handler.SQLHandler.
|
||||
*
|
||||
* @lucene.internal
|
||||
* @since 7.0.0
|
||||
*/
|
||||
public class CalciteJDBCStream extends JDBCStream {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.apache.lucene.analysis.*;
|
|||
* The classify expression retrieves a model trained by the train expression and uses it to classify documents from a stream
|
||||
* Syntax:
|
||||
* classif(model(...), anyStream(...), field="body")
|
||||
* @since 6.3.0
|
||||
**/
|
||||
|
||||
public class ClassifyStream extends TupleStream implements Expressible {
|
||||
|
@ -225,4 +226,4 @@ public class ClassifyStream extends TupleStream implements Expressible {
|
|||
|
||||
return explanation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,9 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
import static org.apache.solr.common.params.CommonParams.SORT;
|
||||
|
||||
/**
|
||||
* @since 6.1.0
|
||||
*/
|
||||
public class GraphHandler extends RequestHandlerBase implements SolrCoreAware, PermissionNameProvider {
|
||||
|
||||
private StreamFactory streamFactory = new StreamFactory();
|
||||
|
|
|
@ -70,6 +70,9 @@ import org.slf4j.LoggerFactory;
|
|||
import static org.apache.solr.common.params.CommonParams.ID;
|
||||
import static org.apache.solr.common.params.CommonParams.SORT;
|
||||
|
||||
/**
|
||||
* @since 5.1.0
|
||||
*/
|
||||
public class StreamHandler extends RequestHandlerBase implements SolrCoreAware, PermissionNameProvider {
|
||||
|
||||
static SolrClientCache clientCache = new SolrClientCache();
|
||||
|
|
|
@ -53,6 +53,9 @@ import org.apache.solr.common.util.SolrjNamedThreadFactory;
|
|||
|
||||
import static org.apache.solr.common.params.CommonParams.SORT;
|
||||
|
||||
/**
|
||||
* @since 6.1.0
|
||||
*/
|
||||
public class GatherNodesStream extends TupleStream implements Expressible {
|
||||
|
||||
private String zkHost;
|
||||
|
@ -674,4 +677,4 @@ public class GatherNodesStream extends TupleStream implements Expressible {
|
|||
.withExpression("non-expressible");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,6 +53,9 @@ import org.apache.solr.common.util.SolrjNamedThreadFactory;
|
|||
|
||||
import static org.apache.solr.common.params.CommonParams.SORT;
|
||||
|
||||
/**
|
||||
* @since 6.1.0
|
||||
*/
|
||||
public class ShortestPathStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Joins leftStream with rightStream based on a Equalitor. Both streams must be sorted by the fields being joined on.
|
||||
* Resulting stream is sorted by the equalitor.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public abstract class BiJoinStream extends JoinStream implements Expressible {
|
||||
|
|
|
@ -30,6 +30,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class CalculatorStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -106,4 +109,4 @@ public class CalculatorStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionParser;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionValue;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class CartesianProductStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -304,4 +307,4 @@ public class CartesianProductStream extends TupleStream implements Expressible {
|
|||
return evaluator;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class CellStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -149,4 +152,4 @@ public class CellStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,6 +65,7 @@ import static org.apache.solr.common.params.CommonParams.SORT;
|
|||
* Under the covers the SolrStream instances send the query to the replicas.
|
||||
* SolrStreams are opened using a thread pool, but a single thread is used
|
||||
* to iterate and merge Tuples from each SolrStream.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
public class CloudSolrStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -39,6 +39,7 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
/**
|
||||
* Sends a commit message to a SolrCloud collection
|
||||
* @since 6.3.0
|
||||
*/
|
||||
public class CommitStream extends TupleStream implements Expressible {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Emits tuples from streamA which do not exist in streamB. Resulting tuples are ordered
|
||||
* the same as they were in streamA. Both streams must be sorted by the fields being compared.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public class ComplementStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -41,7 +41,9 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
import static org.apache.solr.common.params.CommonParams.ID;
|
||||
|
||||
|
||||
/**
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class DaemonStream extends TupleStream implements Expressible {
|
||||
|
||||
private TupleStream tupleStream;
|
||||
|
@ -372,4 +374,4 @@ public class DaemonStream extends TupleStream implements Expressible {
|
|||
setStopTime(new Date().getTime());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class EchoStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -116,4 +119,4 @@ public class EchoStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class EvalStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
@ -140,4 +143,4 @@ public class EvalStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@ import org.apache.solr.common.SolrException;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class ExceptionStream extends TupleStream {
|
||||
|
||||
private TupleStream stream;
|
||||
|
|
|
@ -50,6 +50,7 @@ import static org.apache.solr.common.params.CommonParams.ID;
|
|||
* executor(thread=10, topic(storedExpressions, q="*:*", fl="expr_s, id", id="topic1"))
|
||||
*
|
||||
* The Streaming Expression to execute is taken from the expr field in the Tuples.
|
||||
* @since 6.3.0
|
||||
*/
|
||||
|
||||
public class ExecutorStream extends TupleStream implements Expressible {
|
||||
|
@ -223,4 +224,4 @@ public class ExecutorStream extends TupleStream implements Expressible {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ import org.apache.solr.common.util.NamedList;
|
|||
/**
|
||||
* The FacetStream abstracts the output from the JSON facet API as a Stream of Tuples. This provides an alternative to the
|
||||
* RollupStream which uses Map/Reduce to perform aggregations.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public class FacetStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -62,6 +62,9 @@ import org.apache.solr.common.util.SolrjNamedThreadFactory;
|
|||
import static org.apache.solr.common.params.CommonParams.DISTRIB;
|
||||
import static org.apache.solr.common.params.CommonParams.ID;
|
||||
|
||||
/**
|
||||
* @since 6.2.0
|
||||
*/
|
||||
public class FeaturesSelectionStream extends TupleStream implements Expressible{
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -49,6 +49,7 @@ import static org.apache.solr.common.params.CommonParams.VERSION_FIELD;
|
|||
*
|
||||
* fetch(collection, stream, on="a=b", fl="c,d,e", batchSize="50")
|
||||
*
|
||||
* @since 6.3.0
|
||||
**/
|
||||
|
||||
public class FetchStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -32,6 +32,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class GetStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -118,4 +121,4 @@ public class GetStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
* You are expected to provide a set of fields for which the hash will be calculated from. If a tuple does
|
||||
* not contain a value (ie, null) for one of the fields the hash is being computed on then that tuple will
|
||||
* not be considered a match to anything. Ie, all fields which are part of the hash must have a non-null value.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
public class HashJoinStream extends TupleStream implements Expressible {
|
||||
|
||||
|
@ -283,4 +284,4 @@ public class HashJoinStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* The HavingStream iterates over an internal stream and applies a BooleanOperation to each tuple. If the BooleanOperation
|
||||
* evaluates to true then the HavingStream emits the tuple, if it returns false the tuple is not emitted.
|
||||
* @since 6.4.0
|
||||
**/
|
||||
|
||||
public class HavingStream extends TupleStream implements Expressible {
|
||||
|
@ -169,4 +170,4 @@ public class HavingStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Joins leftStream with rightStream based on a Equalitor. Both streams must be sorted by the fields being joined on.
|
||||
* Resulting stream is sorted by the equalitor.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public class InnerJoinStream extends BiJoinStream implements Expressible {
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Emits tuples from streamA which also exist in streamB. Resulting tuples are ordered
|
||||
* the same as they were in streamA. Both streams must be sorted by the fields being compared.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public class IntersectStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -115,6 +115,7 @@ import static org.apache.solr.common.params.CommonParams.SORT;
|
|||
* </tr>
|
||||
* </table>
|
||||
*
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public class JDBCStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -35,7 +35,10 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionNamedParamete
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionValue;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/** Defines a JoinStream which can hold N streams, all joined with the same equalitor */
|
||||
/**
|
||||
* Defines a JoinStream which can hold N streams, all joined with the same equalitor
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public abstract class JoinStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -50,6 +50,9 @@ import static org.apache.solr.common.params.CommonParams.Q;
|
|||
import static org.apache.solr.common.params.CommonParams.ROWS;
|
||||
|
||||
|
||||
/**
|
||||
* @since 7.0.0
|
||||
*/
|
||||
public class KnnStream extends TupleStream implements Expressible {
|
||||
|
||||
private static String[] mltParams = {"qf", "mintf", "mindf", "maxdf", "minwl", "maxwl", "maxqt", "maxntp", "boost"};
|
||||
|
@ -253,4 +256,4 @@ public class KnnStream extends TupleStream implements Expressible {
|
|||
public StreamComparator getStreamSort() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Joins leftStream with rightStream based on a Equalitor. Both streams must be sorted by the fields being joined on.
|
||||
* Resulting stream is sorted by the equalitor.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
public class LeftOuterJoinStream extends BiJoinStream implements Expressible {
|
||||
|
|
|
@ -35,6 +35,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionNamedParamete
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionParameter;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class LetStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -181,4 +184,4 @@ public class LetStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class ListStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -142,4 +145,4 @@ public class ListStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Merges two or more streams together ordering the Tuples based on a Comparator.
|
||||
* All streams must be sorted by the fields being compared - this will be validated on construction.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
public class MergeStream extends TupleStream implements Expressible {
|
||||
|
||||
|
@ -246,4 +247,4 @@ public class MergeStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ import static org.apache.solr.common.params.CommonParams.ID;
|
|||
* The ModelStream retrieves a stored model from a Solr Cloud collection.
|
||||
*
|
||||
* Syntax: model(collection, id="modelID")
|
||||
* @since 6.3.0
|
||||
**/
|
||||
|
||||
public class ModelStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
* The NullStream Iterates over a TupleStream and eats the tuples. It returns the tuple count in the EOF tuple.
|
||||
* Because the NullStreaam eats all the Tuples it see's it can be used as a simple tool for performance analysis of
|
||||
* underlying streams.
|
||||
* @since 6.4.0
|
||||
**/
|
||||
|
||||
public class NullStream extends TupleStream implements Expressible {
|
||||
|
@ -152,4 +153,4 @@ public class NullStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
* tuple will not be considered a match to anything. If a tuple from the fullStream does not contain a value (ie, null)
|
||||
* for one of the fields the hash is being computed on then that tuple will be returned without any joined tuples
|
||||
* from the hashStream
|
||||
* @since 6.0.0
|
||||
**/
|
||||
public class OuterHashJoinStream extends HashJoinStream implements Expressible {
|
||||
|
||||
|
@ -129,4 +130,4 @@ public class OuterHashJoinStream extends HashJoinStream implements Expressible {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,9 +43,8 @@ import static org.apache.solr.common.params.CommonParams.SORT;
|
|||
* The ParallelStream decorates a TupleStream implementation and pushes it to N workers for parallel execution.
|
||||
* Workers are chosen from a SolrCloud collection.
|
||||
* Tuples that are streamed back from the workers are ordered by a Comparator.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
|
||||
public class ParallelStream extends CloudSolrStream implements Expressible {
|
||||
|
||||
private TupleStream tupleStream;
|
||||
|
|
|
@ -38,6 +38,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionParameter;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionValue;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 7.1.0
|
||||
*/
|
||||
public class PlotStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -218,4 +221,4 @@ public class PlotStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.slf4j.LoggerFactory;
|
|||
* returned.
|
||||
*
|
||||
* The scheduler is designed to be wrapped by the executor function and a daemon function can be used to call the executor iteratively.
|
||||
* @since 6.4.0
|
||||
**/
|
||||
|
||||
public class PriorityStream extends TupleStream implements Expressible {
|
||||
|
@ -158,4 +159,4 @@ public class PriorityStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
* A TupleStream that allows a single Tuple to be pushed back onto the stream after it's been read.
|
||||
* This is a useful class when building streams that maintain the order of Tuples between multiple
|
||||
* substreams.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
public class PushBackStream extends TupleStream implements Expressible {
|
||||
|
@ -98,4 +99,4 @@ public class PushBackStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ import static org.apache.solr.common.params.CommonParams.SORT;
|
|||
/**
|
||||
* The RandomStream emits a stream of psuedo random Tuples that match the query parameters. Sample expression syntax:
|
||||
* random(collection, q="Hello word", rows="50", fl="title, body")
|
||||
* @since 6.1.0
|
||||
**/
|
||||
|
||||
public class RandomStream extends TupleStream implements Expressible {
|
||||
|
|
|
@ -42,6 +42,7 @@ import static org.apache.solr.common.params.CommonParams.SORT;
|
|||
|
||||
/**
|
||||
* Iterates over a TupleStream and Ranks the topN tuples based on a Comparator.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
public class RankStream extends TupleStream implements Expressible {
|
||||
|
@ -228,4 +229,4 @@ public class RankStream extends TupleStream implements Expressible {
|
|||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
* Note: The ReducerStream requires that it's underlying stream be sorted and partitioned by the same
|
||||
* fields as it's comparator.
|
||||
*
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
public class ReducerStream extends TupleStream implements Expressible {
|
||||
|
@ -244,4 +245,4 @@ public class ReducerStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
import org.apache.solr.client.solrj.io.stream.metrics.Bucket;
|
||||
import org.apache.solr.client.solrj.io.stream.metrics.Metric;
|
||||
|
||||
/**
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class RollupStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -270,4 +273,4 @@ public class RollupStream extends TupleStream implements Expressible {
|
|||
public StreamComparator getStreamSort() {
|
||||
return tupleStream.getStreamSort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ import static org.apache.solr.common.params.CommonParams.DISTRIB;
|
|||
* You can use a different value for termFreq by providing the termFreq param
|
||||
* scoreNodes(gatherNodes(...), termFreq="min(weight)")
|
||||
*
|
||||
* @since 6.2.0
|
||||
**/
|
||||
|
||||
public class ScoreNodesStream extends TupleStream implements Expressible
|
||||
|
|
|
@ -42,6 +42,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
/**
|
||||
* Selects fields from the incoming stream and applies optional field renaming.
|
||||
* Does not reorder the outgoing stream.
|
||||
* @since 6.0.0
|
||||
**/
|
||||
|
||||
|
||||
|
@ -295,4 +296,4 @@ public class SelectStream extends TupleStream implements Expressible {
|
|||
public int getCost() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,9 @@ import org.apache.solr.common.params.CommonParams;
|
|||
import org.apache.solr.common.params.ModifiableSolrParams;
|
||||
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class ShuffleStream extends CloudSolrStream implements Expressible {
|
||||
|
||||
public ShuffleStream(StreamExpression expression, StreamFactory factory) throws IOException {
|
||||
|
|
|
@ -51,6 +51,9 @@ import org.apache.solr.common.util.SolrjNamedThreadFactory;
|
|||
|
||||
import static org.apache.solr.common.params.CommonParams.DISTRIB;
|
||||
|
||||
/**
|
||||
* @since 6.5.0
|
||||
*/
|
||||
public class SignificantTermsStream extends TupleStream implements Expressible{
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -49,6 +49,7 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
/**
|
||||
* Queries a single Solr instance and maps SolrDocs to a Stream of Tuples.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
public class SolrStream extends TupleStream {
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.solr.client.solrj.io.stream.expr.Explanation.ExpressionType;
|
|||
|
||||
/**
|
||||
* The SortStream emits a stream of Tuples sorted by a Comparator.
|
||||
* @since 6.1.0
|
||||
**/
|
||||
|
||||
public class SortStream extends TupleStream implements Expressible {
|
||||
|
@ -196,4 +197,4 @@ public class SortStream extends TupleStream implements Expressible {
|
|||
public Tuple read();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,9 @@ import org.apache.solr.common.params.CommonParams;
|
|||
import org.apache.solr.common.params.ModifiableSolrParams;
|
||||
import org.apache.solr.common.params.SolrParams;
|
||||
|
||||
/**
|
||||
* @since 7.0.0
|
||||
*/
|
||||
public class SqlStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -46,6 +46,9 @@ import org.apache.solr.common.params.ModifiableSolrParams;
|
|||
import org.apache.solr.common.params.SolrParams;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
|
||||
/**
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class StatsStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -63,6 +63,9 @@ import org.apache.solr.common.util.SolrjNamedThreadFactory;
|
|||
import static org.apache.solr.common.params.CommonParams.DISTRIB;
|
||||
import static org.apache.solr.common.params.CommonParams.ID;
|
||||
|
||||
/**
|
||||
* @since 6.2.0
|
||||
*/
|
||||
public class TextLogitStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -48,6 +48,9 @@ import org.apache.solr.common.params.ModifiableSolrParams;
|
|||
import org.apache.solr.common.params.SolrParams;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class TimeSeriesStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
|
|
@ -67,6 +67,9 @@ import static org.apache.solr.common.params.CommonParams.ID;
|
|||
import static org.apache.solr.common.params.CommonParams.SORT;
|
||||
import static org.apache.solr.common.params.CommonParams.VERSION_FIELD;
|
||||
|
||||
/**
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class TopicStream extends CloudSolrStream implements Expressible {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
|
|
@ -38,6 +38,9 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionParameter;
|
|||
import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionValue;
|
||||
import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
||||
|
||||
/**
|
||||
* @since 6.6.0
|
||||
*/
|
||||
public class TupStream extends TupleStream implements Expressible {
|
||||
|
||||
private static final long serialVersionUID = 1;
|
||||
|
@ -214,4 +217,4 @@ public class TupStream extends TupleStream implements Expressible {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,9 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
/**
|
||||
* @since 5.1.0
|
||||
*/
|
||||
public abstract class TupleStream implements Closeable, Serializable, MapWriter {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
@ -207,4 +210,4 @@ public abstract class TupleStream implements Closeable, Serializable, MapWriter
|
|||
return "Early Client Disconnect";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
|
|||
* The UniqueStream emits a unique stream of Tuples based on a Comparator.
|
||||
*
|
||||
* Note: The sort order of the underlying stream must match the Comparator.
|
||||
* @since 5.1.0
|
||||
**/
|
||||
|
||||
public class UniqueStream extends TupleStream implements Expressible {
|
||||
|
@ -169,4 +170,4 @@ public class UniqueStream extends TupleStream implements Expressible {
|
|||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ import static org.apache.solr.common.params.CommonParams.VERSION_FIELD;
|
|||
|
||||
/**
|
||||
* Sends tuples emitted by a wrapped {@link TupleStream} as updates to a SolrCloud collection.
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public class UpdateStream extends TupleStream implements Expressible {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
|
Loading…
Reference in New Issue