Skip to content

Large input? #29

@spoerri

Description

@spoerri

How should java-jq be used on a large input, that is with a large number of small json objects? The jq command line app handles it fine, filtering out individual json objects and translating them one-by-one. Using the java-jq naively as in the README.md, I get:

Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit
    at java.lang.StringCoding.encode(StringCoding.java:350)
    at java.lang.String.getBytes(String.java:941)
    at com.arakelian.jq.JqRequest.parse(JqRequest.java:263)
    at com.arakelian.jq.JqRequest.parse(JqRequest.java:233)
    at com.arakelian.jq.JqRequest.jq(JqRequest.java:178)
    at com.arakelian.jq.JqRequest.execute(JqRequest.java:58)
    at com.cantor.aqdev.core.eventviewer.EventViewerJq.main(EventViewerJq.java:27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions