protected void spillRow(VectorizedRowBatch batch, int batchIndex, int partitionId) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } spillSerializeRow(batch, batchIndex, partitionId); }
protected void spillBatchRepeated(VectorizedRowBatch batch, VectorMapJoinHashTableResult hashTableResult) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } int[] selected = batch.selected; boolean selectedInUse = batch.selectedInUse; for (int logical = 0; logical < batch.size; logical++) { int batchIndex = (selectedInUse ? selected[logical] : logical); spillSerializeRow(batch, batchIndex, hashTableResult); } }
protected void spillHashMapBatch(VectorizedRowBatch batch, VectorMapJoinHashTableResult[] hashTableResults, int[] spills, int[] spillHashTableResultIndices, int spillCount) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } for (int i = 0; i < spillCount; i++) { int batchIndex = spills[i]; int hashTableResultIndex = spillHashTableResultIndices[i]; VectorMapJoinHashTableResult hashTableResult = hashTableResults[hashTableResultIndex]; spillSerializeRow(batch, batchIndex, hashTableResult); } }
protected void spillBatchRepeated(VectorizedRowBatch batch, VectorMapJoinHashTableResult hashTableResult) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } int[] selected = batch.selected; boolean selectedInUse = batch.selectedInUse; for (int logical = 0; logical < batch.size; logical++) { int batchIndex = (selectedInUse ? selected[logical] : logical); spillSerializeRow(batch, batchIndex, hashTableResult.spillPartitionId()); } }
protected void spillHashMapBatch(VectorizedRowBatch batch, VectorMapJoinHashTableResult[] hashTableResults, int[] spills, int[] spillHashTableResultIndices, int spillCount) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } for (int i = 0; i < spillCount; i++) { int batchIndex = spills[i]; int hashTableResultIndex = spillHashTableResultIndices[i]; VectorMapJoinHashTableResult hashTableResult = hashTableResults[hashTableResultIndex]; spillSerializeRow(batch, batchIndex, hashTableResult.spillPartitionId()); } }
protected void spillBatchRepeated(VectorizedRowBatch batch, VectorMapJoinHashTableResult hashTableResult) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } int[] selected = batch.selected; boolean selectedInUse = batch.selectedInUse; for (int logical = 0; logical < batch.size; logical++) { int batchIndex = (selectedInUse ? selected[logical] : logical); spillSerializeRow(batch, batchIndex, hashTableResult); } }
protected void spillHashMapBatch(VectorizedRowBatch batch, VectorMapJoinHashTableResult[] hashTableResults, int[] spills, int[] spillHashTableResultIndices, int spillCount) throws HiveException, IOException { if (bigTableVectorSerializeRow == null) { setupSpillSerDe(batch); } for (int i = 0; i < spillCount; i++) { int batchIndex = spills[i]; int hashTableResultIndex = spillHashTableResultIndices[i]; VectorMapJoinHashTableResult hashTableResult = hashTableResults[hashTableResultIndex]; spillSerializeRow(batch, batchIndex, hashTableResult); } }