TableJoin Utility

The TableJoin utility is designed for joining tables expressed in CSV or structured as list of String lists. It enhances the flexibility of data processing by allowing developers to perform joint operations on specified tables.

How to run the TableJoin Utility inside Java

Add TableJoin in the list of dependencies in your Maven pom.xml:

<dependencies>
	<!-- [...] -->
	<dependency>
		<groupId>org.sentrysoftware</groupId>
		<artifactId>tablejoin</artifactId>
		<version>1.0.01</version>
	</dependency>
</dependencies>

Invoke the TableJoin Utility:

	public static void main(String[] args) throws Exception {

		final String leftTableCSV = "a1,b1,c1\na2,b2,c2\na3,b3,c3";
		final String rightTableCSV = "a1,5\na2,8\na3,3";

		final int leftKeyColumnNumber = 1;
		final int rightKeyColumnNumber = 1;

		final String separator = ",";
		final String defaultRightLine = null;

		final String result = TableJoin.join(
			leftTableCSV,
			rightTableCSV,
			leftKeyColumnNumber,
			rightKeyColumnNumber,
			separator,
			defaultRightLine,
			false,
			false
		);
		
		System.out.println("Join Result :");
		System.out.println(result);
	}
No results.