[
https://issues.apache.org/jira/browse/SOLR-8480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15082151#comment-15082151
]
Cao Manh Dat commented on SOLR-8480:
------------------------------------
I'm a new one too. But as Streaming API is getting more and more complicated,
users may have very long running streaming job (ex : parallel update from many
sources ...). So it will be necessary to have these info.
{quote}
All things are possible I suppose, but right now there's nothing that knows the
size of the result-set.
{quote}
I use this snippet to get size of SolrStream (JsonTupleStream#advanceToDocs())
{code}
expect(JSONParser.OBJECT_START);
if (advanceToMapKey("numFound", true)){
numFound = parser.getLong();
}
{code}
{quote}
For example, consider: unique(search(...)). How would a UniqueStream define its
size?
{quote}
You are absolutely right. We can change the method to {{ getEstimatedSize() }}.
It is good enough.
> Progress info for TupleStream
> -----------------------------
>
> Key: SOLR-8480
> URL: https://issues.apache.org/jira/browse/SOLR-8480
> Project: Solr
> Issue Type: Improvement
> Components: SolrJ
> Reporter: Cao Manh Dat
>
> I suggest adding progress info for TupleStream. It can be very helpful for
> tracking consuming process
> {code}
> public abstract class TupleStream {
> public abstract long getSize();
> public abstract long getConsumed();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]