ByteSegmentRef byteSegmentRef = hashMapResult.first();
ByteSegmentRef byteSegmentRef = hashMapResult.first();
WriteBuffers.ByteSegmentRef ref = hashMapResult.first();
public static void verifyHashMapRows(List<Object[]> rows, int[] actualToValueMap, VectorMapJoinHashMapResult hashMapResult, TypeInfo[] typeInfos) throws IOException { final int count = rows.size(); final int columnCount = typeInfos.length; WriteBuffers.ByteSegmentRef ref = hashMapResult.first(); for (int a = 0; a < count; a++) { int valueIndex = actualToValueMap[a]; Object[] row = rows.get(valueIndex); byte[] bytes = ref.getBytes(); int offset = (int) ref.getOffset(); int length = ref.getLength(); LazyBinaryDeserializeRead lazyBinaryDeserializeRead = new LazyBinaryDeserializeRead( typeInfos, /* useExternalBuffer */ false); lazyBinaryDeserializeRead.set(bytes, offset, length); for (int index = 0; index < columnCount; index++) { verifyRead(lazyBinaryDeserializeRead, typeInfos[index], row[index]); } TestCase.assertTrue(lazyBinaryDeserializeRead.isEndOfInputReached()); ref = hashMapResult.next(); if (a == count - 1) { TestCase.assertTrue (ref == null); } else { TestCase.assertTrue (ref != null); } } }
final int columnCount = typeInfos.length; WriteBuffers.ByteSegmentRef ref = hashMapResult.first();
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first();
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (byteSegmentRef != null) {
ByteSegmentRef byteSegmentRef = hashMapResult.first(); while (true) {