我们如何在 hadoop 中拥有自己的对象数组?Hadoop 是否有类似于 java 的 List、Set、LinkedList 等容器?以下几行好吗?
Text[] textArray = new Text[2];
textArray[0] = new Text(maxSalaryDeptEmployee.getEmployeeName());
textArray[1] = new Text(Integer.toString(maxSalaryDeptEmployee.getEmployeeSalary()));
ArrayWritable arrayWritable = new ArrayWritable(Text.class,textArray);