/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField() { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (!fieldInited) { fieldInited = true; field.init(bytes, fieldStart, fieldLength); } cachedObject = field.getObject(); return field.getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField(int fieldID) { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (fieldIsNull[fieldID]) { return null; } if (!fieldInited[fieldID]) { fieldInited[fieldID] = true; fields[fieldID].init(bytes, fieldStart[fieldID], fieldLength[fieldID]); } return fields[fieldID].getObject(); }
Object value = (lazyValue == null ? null : lazyValue.getObject()); cachedMap.put(key, value);
/** * Get the element without checking out-of-bound index. * * @param index * index to the array element */ private Object uncheckedGetElement(int index) { if (elementIsNull[index]) { return null; } else { if (!elementInited[index]) { elementInited[index] = true; if (arrayElements[index] == null) { arrayElements[index] = LazyBinaryFactory.createLazyBinaryObject((oi) .getListElementObjectInspector()); } arrayElements[index].init(bytes, elementStart[index], elementLength[index]); } } return arrayElements[index].getObject(); }
return v == null ? v : v.getObject();
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField() { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (!fieldInited) { fieldInited = true; field.init(bytes, fieldStart, fieldLength); } cachedObject = field.getObject(); return field.getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField() { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (!fieldInited) { fieldInited = true; field.init(bytes, fieldStart, fieldLength); } cachedObject = field.getObject(); return field.getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField() { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (!fieldInited) { fieldInited = true; field.init(bytes, fieldStart, fieldLength); } cachedObject = field.getObject(); return field.getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField() { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (!fieldInited) { fieldInited = true; field.init(bytes, fieldStart, fieldLength); } cachedObject = field.getObject(); return field.getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField(int fieldID) { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (fieldIsNull[fieldID]) { return null; } if (!fieldInited[fieldID]) { fieldInited[fieldID] = true; fields[fieldID].init(bytes, fieldStart[fieldID], fieldLength[fieldID]); } return fields[fieldID].getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField(int fieldID) { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (fieldIsNull[fieldID]) { return null; } if (!fieldInited[fieldID]) { fieldInited[fieldID] = true; fields[fieldID].init(bytes, fieldStart[fieldID], fieldLength[fieldID]); } return fields[fieldID].getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField(int fieldID) { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (fieldIsNull[fieldID]) { return null; } if (!fieldInited[fieldID]) { fieldInited[fieldID] = true; fields[fieldID].init(bytes, fieldStart[fieldID], fieldLength[fieldID]); } return fields[fieldID].getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField(int fieldID) { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (fieldIsNull[fieldID]) { return null; } if (!fieldInited[fieldID]) { fieldInited[fieldID] = true; fields[fieldID].init(bytes, fieldStart[fieldID], fieldLength[fieldID]); } return fields[fieldID].getObject(); }
/** * Get the field out of the row without checking parsed. This is called by * both getField and getFieldsAsList. * * @param fieldID * The id of the field starting from 0. * @return The value of the field */ private Object uncheckedGetField(int fieldID) { // Test the length first so in most cases we avoid doing a byte[] // comparison. if (fieldIsNull[fieldID]) { return null; } if (!fieldInited[fieldID]) { fieldInited[fieldID] = true; fields[fieldID].init(bytes, fieldStart[fieldID], fieldLength[fieldID]); } return fields[fieldID].getObject(); }
/** * Get the element without checking out-of-bound index. * * @param index * index to the array element */ private Object uncheckedGetElement(int index) { if (elementIsNull[index]) { return null; } else { if (!elementInited[index]) { elementInited[index] = true; if (arrayElements[index] == null) { arrayElements[index] = LazyBinaryFactory.createLazyBinaryObject((oi) .getListElementObjectInspector()); } arrayElements[index].init(bytes, elementStart[index], elementLength[index]); } } return arrayElements[index].getObject(); }
private void parseObjectColumn(int column, byte[] bytes, int start, int length) { checkState(VALID_HIVE_STRUCTURAL_CATEGORIES.contains(hiveTypes[column].getCategory()), "%s is not a valid STRUCTURAL type", hiveTypes[column]); if (length == 0) { nulls[column] = true; } else { nulls[column] = false; LazyBinaryObject<? extends ObjectInspector> lazyObject = LazyBinaryFactory.createLazyBinaryObject(fieldInspectors[column]); ByteArrayRef byteArrayRef = new ByteArrayRef(); byteArrayRef.setData(bytes); lazyObject.init(byteArrayRef, start, length); objects[column] = getBlockObject(types[column], lazyObject.getObject(), fieldInspectors[column]); } }
/** * Get the element without checking out-of-bound index. * * @param index * index to the array element */ private Object uncheckedGetElement(int index) { if (elementIsNull[index]) { return null; } else { if (!elementInited[index]) { elementInited[index] = true; if (arrayElements[index] == null) { arrayElements[index] = LazyBinaryFactory.createLazyBinaryObject((oi) .getListElementObjectInspector()); } arrayElements[index].init(bytes, elementStart[index], elementLength[index]); } } return arrayElements[index].getObject(); }
/** * Get the element without checking out-of-bound index. * * @param index * index to the array element */ private Object uncheckedGetElement(int index) { if (elementIsNull[index]) { return null; } else { if (!elementInited[index]) { elementInited[index] = true; if (arrayElements[index] == null) { arrayElements[index] = LazyBinaryFactory.createLazyBinaryObject((oi) .getListElementObjectInspector()); } arrayElements[index].init(bytes, elementStart[index], elementLength[index]); } } return arrayElements[index].getObject(); }
/** * Get the element without checking out-of-bound index. * * @param index * index to the array element */ private Object uncheckedGetElement(int index) { if (elementIsNull[index]) { return null; } else { if (!elementInited[index]) { elementInited[index] = true; if (arrayElements[index] == null) { arrayElements[index] = LazyBinaryFactory.createLazyBinaryObject((oi) .getListElementObjectInspector()); } arrayElements[index].init(bytes, elementStart[index], elementLength[index]); } } return arrayElements[index].getObject(); }
/** * Get the element without checking out-of-bound index. * * @param index * index to the array element */ private Object uncheckedGetElement(int index) { if (elementIsNull[index]) { return null; } else { if (!elementInited[index]) { elementInited[index] = true; if (arrayElements[index] == null) { arrayElements[index] = LazyBinaryFactory.createLazyBinaryObject((oi) .getListElementObjectInspector()); } arrayElements[index].init(bytes, elementStart[index], elementLength[index]); } } return arrayElements[index].getObject(); }