Skip to content

More docs for Java examples? #795

@TripleCamera

Description

@TripleCamera

The Java examples are poorly documented. The only page mentioning the examples is the QuickStart tutorial. I encountered a few questions while studying the examples:

First, how to run the examples? I cloned the repository and built the Java packages, but can't figure out how to run the examples. Copilot gave me the following command:

$ ./mvnw -f java/examples/pom.xml -DskipTests exec:java -Dexec.mainClass=org.apache.tsfile.XXX

Is this correct?

Second, what are the functions of each example? The only two examples mentioned by QuickStart are org.apache.tsfile.v4.WriteTabletWithITsFileWriter (for writing TsFiles) and org.apache.tsfile.v4.ITsFileReaderAndITsFileWriter (for reading and writing TsFiles), and it seems that the former one is just a subset of the latter one. Besides, both of them are prefixed with v4. This is confusing because TsFile Java only has v1 and v2. What does v4 stand for? Does that mean that examples outside the v4 package are outdated?

Finally, I stumbled upon the TsFile API page, which doesn't have any backlinks. I noticed that it is under the "stage" directory, is it a "staging" page? Will it be published one day?

Above all, could you please provide more docs for the Java examples?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions