- write(data)source
Write single record.
Parametersdata – record data to write as string, byte array or byte sequence.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-04 UTC."],[[["This module, `google.appengine.api.files.records`, implements a lightweight record format similar to the log file format used in leveldb, which is now deprecated in favor of the Google Cloud Storage Client library."],["The file format consists of a sequence of 32KB blocks, each containing multiple records and a possible trailer of zero bytes if the block's end isn't a perfect fit, with records never starting within the last six bytes of a block."],["Records can be of types FULL, FIRST, MIDDLE, or LAST, where FULL indicates a complete user record, and FIRST, MIDDLE, and LAST are used to split larger records across multiple fragments/blocks."],["The module defines classes for reading (`RecordsReader`, `FileReader`) and writing (`RecordsWriter`, `FileWriter`) records, including methods for reading, writing, seeking, and determining the current file position."],["The module defines exceptions Error and InvalidRecordError for handling errors and invalid records."]]],[]]