MCPcopy Create free account
hub / github.com/apache/impala / VerifyReadWriteBatch

Method VerifyReadWriteBatch

be/src/runtime/buffered-tuple-stream-test.cc:1033–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033void SimpleTupleStreamTest::VerifyReadWriteBatch(
1034 RowBatch* in_batch, RowBatch* out_batch, int64_t start_index) {
1035 int slot_offset = int_desc_->tuple_descriptors()[0]->slots()[0]->tuple_offset();
1036 int64_t row_index = start_index;
1037 for (int i = 0; i < out_batch->num_rows(); ++i) {
1038 TupleRow* in_row = in_batch->GetRow(row_index++ % in_batch->num_rows());
1039 EXPECT_EQ(*in_row->GetTuple(0)->GetIntSlot(slot_offset),
1040 *out_batch->GetRow(i)->GetTuple(0)->GetIntSlot(slot_offset));
1041 }
1042}
1043
1044TEST_F(SimpleTupleStreamTest, TestFlushResourcesReadWritePinnedAttach) {
1045 TestFlushResourcesReadWrite(true, true);

Callers

nothing calls this directly

Calls 5

tuple_offsetMethod · 0.80
GetIntSlotMethod · 0.80
num_rowsMethod · 0.45
GetRowMethod · 0.45
GetTupleMethod · 0.45

Tested by

no test coverage detected