Setting up an application

Your application setup includes importing any required libraries, including the 1010data Java SDK and creating a class that holds the functions that interact with the Insights Platform and the Main method.

In the example, the DocumentationExample class contains the Main method and printRows function. The printRows function retrieves each row and prints it.

import com.tentendata.javasdk1010v2.*;

public class DocumentationExample {
    public static void printRows(Row r) {
        System.out.println(r);
    }
                
    public static void Main() {
    }
}