Package com.illumon.iris.importers.csv
Class PartitionParserUpdate
java.lang.Object
com.illumon.iris.importers.csv.PartitionParserUpdate
Holds the map of partition to its list of chunks (startIndex and size) in one parser chunk which is approximately 262K in size.
 The TIntArrayList holds the startIndex on even index values(starting with 0, 2, 4...)  and size is on odd index values (1, 3, 5...)
- 
Constructor SummaryConstructorsConstructorDescriptionPartitionParserUpdate(long destEnd, Map<String, gnu.trove.list.array.TIntArrayList> partitionMap) Is populated with the map of partition to start-size arraylist as processed in the current chunk inCsvPartitionColumnParser.
- 
Method SummaryModifier and TypeMethodDescriptionlongbooleanvoidprocessingComplete(boolean awaitAdvance) This will decrease the count of waiting parities in phaser reducing the number of processing threads.
- 
Constructor Details- 
PartitionParserUpdatepublic PartitionParserUpdate(long destEnd, @NotNull Map<String, gnu.trove.list.array.TIntArrayList> partitionMap) Is populated with the map of partition to start-size arraylist as processed in the current chunk inCsvPartitionColumnParser.- Parameters:
- destEnd- The destEnd for the chunk processed in partition parser
- partitionMap- Map of partition to start-size arraylist
 
 
- 
- 
Method Details- 
getDestEndpublic long getDestEnd()
- 
getPartitionMap
- 
processingCompletepublic void processingComplete(boolean awaitAdvance) This will decrease the count of waiting parities in phaser reducing the number of processing threads. This should be invoked when processing is complete for the current parser update in a column sink. When all column sinks invoke the method then partition parser updates for the next chunk will be published- Parameters:
- awaitAdvance- a value of true indicates if we should block in this case until all parties arrive
 
- 
hasMorePartitionspublic boolean hasMorePartitions()- Returns:
- true if there are more partitions to be processed in the original PartitionParserUpdate published from partition parser
 
 
-