Returns header information for the server this record was created on.

@param record instance previously return by an iterator over this merged list.
@return header corresponding to the <code>record</code>.
193747
public Properties getHeader(RepositoryLogRecord record) {
		if (!headerMap.containsKey(record)) {
			throw new IllegalArgumentException("Record was not return by an iterator over this instance");
		}
		return headerMap.get(record);
	}
811854
public String formatRecord(RepositoryLogRecord record) {
        if (null == record) {
            throw new IllegalArgumentException("Record cannot be null");
        }
        return formatRecord(record, (Locale) null);
    }
1001992
public static byte[] toBytes(TBase<?, ?> record) throws TException {
        if (record == null) {
            return null;
        }
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        TTransport transport = new TIOStreamTransport(null, baos);
        TProtocol oProtocol = protocolFactory.getProtocol(transport);
        record.write(oProtocol);
        // baos.close();
        return baos.toByteArray();
    }
1334473
public ImageField getIconField(Record record)
    {
        if (record == null)
            record = this.getReferenceRecord();
        for (int i = 0; i < record.getFieldCount(); i++)
        {
            BaseField field = record.getField(i);
            if (field instanceof ImageField)
                return (ImageField)field;
        }
        return null;    // No icon in this status record
    }
1243800
public boolean processThisRecord(Record record)
    {
        if (record != null)
        {   // Delete all the records
            this.disableAllListeners(record);
            if ((record.getDatabaseType() & (DBConstants.BASE_TABLE_CLASS | DBConstants.SHARED_TABLE)) == (DBConstants.BASE_TABLE_CLASS | DBConstants.SHARED_TABLE))
                this.initSharedRecord(record);
            record.close();
            try {
                while (record.hasNext())
                {
                    record.next();
                    record.edit();
                    record.remove();
                }
            } catch (DBException e) {
                e.printStackTrace();
            }
        }
        return true;
    }
439077
protected long getRecord(String record, IStatistic stats) {
    if (record == null || stats == null) {
      return 0;
    }
    IStatisticRecord statsRecord = stats.getRecordByName(record);
    if (statsRecord == null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Warning: no record for {}, available: {}", record, Arrays.toString(stats.getRecords()));
      }
      return 0;
    }
    return statsRecord.getValueAsLong();
  }
701050
@Override
  public Result executePolicy(Object record) {
    if (!(record instanceof GenericRecord)) {
      return RowLevelPolicy.Result.FAILED;
    }

    GenericRecord header = (GenericRecord) ((GenericRecord) record).get("header");
    if (header == null) {
      return RowLevelPolicy.Result.FAILED;
    }
    if (header.get("time") != null || header.get("timestamp") != null) {
      return RowLevelPolicy.Result.PASSED;
    }
    return RowLevelPolicy.Result.FAILED;
  }
920601
public int getRawRecordData(Rec record)
    {
        int iErrorCode = super.getRawRecordData(record);
        this.getRawFieldData(record.getField(UserInfo.USER_NAME));
        this.getRawFieldData(record.getField(UserInfo.PASSWORD));
        return iErrorCode;
    }
1085053
public Record getAltRecord()
    {
        Record recNext = this.getNextTable().getRecord();
        Iterator<BaseTable> tables = this.getTables();
        while (tables.hasNext())
        {
            Record recAlt = tables.next().getRecord();
            if (recAlt != recNext)
                return recAlt;
        }
        return recNext;
    }
1185661
def format(self, record):
        
        if record.levelno == DEBUG:
            return self.debug_formatter.format(record)
        if record.levelno == INFO:
            return self.info_formatter.format(record)
        if record.levelno == ERROR:
            return self.error_formatter.format(record)
        if record.levelno == WARNING:
            return self.warning_formatter.format(record)
        if record.levelno == CRITICAL:
            return self.critical_formatter.format(record)
1309592
private InputStream readHttpHeader() throws IOException {
    	
    	// this can be helpful when simply iterating over records, 
    	// looking for problems.
        Logger logger = Logger.getLogger(this.getClass().getName());
    	ArchiveRecordHeader h = this.getHeader();
    	
        // If judged a record that doesn't have an http header, return
        // immediately.
        String url = getHeader().getUrl();
        if(!url.startsWith("http") ||
            getHeader().getLength() <= MIN_HTTP_HEADER_LENGTH) {
            return null;
        }
        
        String statusLine;
        byte[] statusBytes;
        int eolCharCount = 0;
        int errOffset = 0;
        
        // Read status line, skipping any errant http headers found before it
        // This allows a larger number of 'corrupt' arcs -- where headers were accidentally
        // inserted before the status line to be readable
        while (true) {
        	statusBytes = LaxHttpParser.readRawLine(getIn());
        	eolCharCount = getEolCharsCount(statusBytes);
        	if (eolCharCount <= 0) {
        		throw new RecoverableIOException(
                "Failed to read http status where one was expected: " 
                + ((statusBytes == null) ? "" : new String(statusBytes)));
        	}
        
        	statusLine = EncodingUtil.getString(statusBytes, 0,
        			statusBytes.length - eolCharCount, ARCConstants.DEFAULT_ENCODING);
        	
        	// If a null or DELETED break immediately
        	if ((statusLine == null) || statusLine.startsWith("DELETED")) {
        		break;
        	}
        	
        	// If it's actually the status line, break, otherwise continue skipping any
        	// previous header values
        	if (!statusLine.contains(":") && StatusLine.startsWithHTTP(statusLine)) {
        		break;
        	}
        	
        	// Add bytes read to error "offset" to add to position
        	errOffset += statusBytes.length;
        }
        
        if (errOffset > 0) {
            this.incrementPosition(errOffset);
        }
        
        if ((statusLine == null) ||
                !StatusLine.startsWithHTTP(statusLine)) {
            if (statusLine.startsWith("DELETED")) {
                // Some old ARCs have deleted records like following:
                // http://vireo.gatech.edu:80/ebt-bin/nph-dweb/dynaweb/SGI_Developer/SGITCL_PG/@Generic__BookTocView/11108%3Btd%3D2 130.207.168.42 19991010131803 text/html 29202
                // DELETED_TIME=20000425001133_DELETER=Kurt_REASON=alexalist
                // (follows ~29K spaces)
                // For now, throw a RecoverableIOException so if iterating over
                // records, we keep going.  TODO: Later make a legitimate
                // ARCRecord from the deleted record rather than throw
                // exception.
                throw new DeletedARCRecordIOException(statusLine);
            } else {
            	this.errors.add(ArcRecordErrors.HTTP_STATUS_LINE_INVALID);
            }
        }

        try {
        	this.httpStatus = new StatusLine(statusLine);
        } catch(IOException e) {
        	logger.warning(e.getMessage() + " at offset: " + h.getOffset());
        	this.errors.add(ArcRecordErrors.HTTP_STATUS_LINE_EXCEPTION);
        }
        
        // Save off all bytes read.  Keep them as bytes rather than
        // convert to strings so we don't have to worry about encodings
        // though this should never be a problem doing http headers since
        // its all supposed to be ascii.
        ByteArrayOutputStream baos =
            new ByteArrayOutputStream(statusBytes.length + 4 * 1024);
        baos.write(statusBytes);
        
        // Now read rest of the header lines looking for the separation
        // between header and body.
        for (byte [] lineBytes = null; true;) {
            lineBytes = LaxHttpParser.readRawLine(getIn());
            eolCharCount = getEolCharsCount(lineBytes);
            if (eolCharCount <= 0) {
            	if (getIn().available() == 0) {
            		httpHeaderBytesRead += statusBytes.length;
                	logger.warning("HTTP header truncated at offset: " + h.getOffset());
            		this.errors.add(ArcRecordErrors.HTTP_HEADER_TRUNCATED);
            		this.setEor(true);
            		break;
            	} else {
            		throw new IOException("Failed reading http headers: " +
            				((lineBytes != null)? new String(lineBytes): null));
            	}
            } else {
            	httpHeaderBytesRead += lineBytes.length;
            }
            // Save the bytes read.
            baos.write(lineBytes);
            if ((lineBytes.length - eolCharCount) <= 0) {
                // We've finished reading the http header.
                break;
            }
        }
        
        byte [] headerBytes = baos.toByteArray();
        // Save off where body starts.
        this.getMetaData().setContentBegin(headerBytes.length);
        ByteArrayInputStream bais =
            new ByteArrayInputStream(headerBytes);
        if (!bais.markSupported()) {
            throw new IOException("ByteArrayInputStream does not support mark");
        }
        bais.mark(headerBytes.length);
        // Read the status line.  Don't let it into the parseHeaders function.
        // It doesn't know what to do with it.
        bais.read(statusBytes, 0, statusBytes.length);
        this.httpHeaders = LaxHttpParser.parseHeaders(bais,
            ARCConstants.DEFAULT_ENCODING);
        this.getMetaData().setStatusCode(Integer.toString(getStatusCode()));
        bais.reset();
        return bais;
    }
908583
public String getMenuLink(FieldList record)
    {
        FieldInfo field = record.getField("Type");
        if ((field != null) && (!field.isNull()))
        {
            String strType = field.toString();
            String strParams = record.getField("Params").toString();
            if (strParams == null)
                strParams = Constants.BLANK;
            else if (strParams.length() > 0)
                strParams = '&' + strParams;
            if ((strType != null) && (strType.length() > 0))
            {
                String strProgram = record.getField("Program").toString();
                if (strType.equalsIgnoreCase(Params.MENU))
                {
                    field = record.getField("ID");
                    String strID = field.toString();
                    return '?' + strType + '=' + strID + strParams;
                }
                else if (strType.equalsIgnoreCase("applet"))
                {
                    return '?' + strType + '=' + strProgram + strParams;
                }
                else if (strType.equalsIgnoreCase("link"))
                {
                    strParams = strProgram;
                    if (((strParams.indexOf('.') < strParams.indexOf('/'))
                        && (strParams.indexOf('.') != -1))
                        || ((strParams.indexOf('/') == -1) && (strParams.indexOf(':') == -1)))
                            strParams = "http://" + strParams; // Default command = html link
                    return strParams;
                }
            }
        }
        return this.getMenuName(record);            // Command = name
    }
540631
public java.util.List<Record> getRecords() {
        if (records == null) {
            records = new com.amazonaws.internal.SdkInternalList<Record>();
        }
        return records;
    }
932208
function (record) {
      var recordToSend = { object: record };

      recordToSend.columnValues = this.getRecordColumnValues(record);
      recordToSend.searchKeywords = this.getRecordKeywords(record);
      recordToSend.filterValues = this.getRecordFilterValues(record);
      recordToSend.color = this.getRecordColor(record);

      return recordToSend;
    }
391911
@Override
	public Map<String, String> getHttpHeaders() {
		// revisit record had no HTTP headers in early days.
		if (headersResource.getRecordLength() == 0)
			return payloadResource.getHttpHeaders();
		else
			return headersResource.getHttpHeaders();
	}
968939
public static byte[] recordToByteArray(GenericRecord record) throws IOException {
    try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
      Encoder encoder = EncoderFactory.get().directBinaryEncoder(out, null);
      DatumWriter<GenericRecord> writer = new GenericDatumWriter<>(record.getSchema());
      writer.write(record, encoder);
      byte[] byteArray = out.toByteArray();
      return byteArray;
    }
  }
356844
public SingleCSVRecord transform(SingleCSVRecord record) {
        List<Writable> record2 = toArrowWritablesSingle(
                toArrowColumnsStringSingle(bufferAllocator,
                        transformProcess.getInitialSchema(),record.getValues()),
                transformProcess.getInitialSchema());
        List<Writable> finalRecord = execute(Arrays.asList(record2),transformProcess).get(0);
        String[] values = new String[finalRecord.size()];
        for (int i = 0; i < values.length; i++)
            values[i] = finalRecord.get(i).toString();
        return new SingleCSVRecord(values);

    }