The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED] SortedExampleSet Reader
Hi,
do you know the best way, how to read sorted data from SortedExampleSet?
I have an implementation for ExampleSet through DataRowReader:
I found SortedExampleReader, but he not inherits from DataRowReader and I dont know how to use it.
Thanks for ideas
Regards,
John
do you know the best way, how to read sorted data from SortedExampleSet?
I have an implementation for ExampleSet through DataRowReader:
But SortedExampleSet has ExampleSet and his mapping indicies. Indicies and Iterator in while cycle is not good way to solve (conditions if counter = 33 then ...).
DataRowReader dataRowReader = exampleTable.getDataRowReader();
while( dataRowReader.hasNext() )
{
DataRow dr = dataRowReader.next();
dr.get( attribute );
...
}
I found SortedExampleReader, but he not inherits from DataRowReader and I dont know how to use it.
Thanks for ideas
Regards,
John
Tagged:
0
Answers
I found solution. Best way is used to more abstraction: Then in while: And code logic is stay same...