File Data
Data Object that contains data that was read from a file, or which is to be written to a file. This is a subclass of RawData that associates some data with either a file on disk, or a file name.
File Data objects can be created from the contents of a file on disk, or from an existing ByteBuffer and a file name. In either case, the file name and timestamp are attached to the data and flow through the pipeline with the data.
Class name: com.datashyft.pipeline.dataobjects.FileData
FileData(String type, File file) — Constructs a new File Data object using the contents of the specified file. The file is memory mapped to avoid loading its entire content into memory all at once. The filename and timestamp are retrieved from the file system.
FileData(String type, File file, String filename, long timestamp) — Constructs a new File Data object using the contents of the specified file. The file is memory mapped to avoid loading its entire content into memory all at once. The specified filename and timestamp are used instead of those associated with the file itself.
FileData(MultiByteBuffer data, String filename, long timestamp) — Constructs a new File Data object using the contents of the specified MultiByteBuffer. The data in the buffer is given the specified filename and timestamp.
FileData(Map<String, List<String> tags, String type, String type, File file) — Constructs a new File Data object using the contents of the specified file. The new object is assigned the specified tags and type. The file is memory mapped to avoid loading its entire content into memory all at once. The filename and timestamp are retrieved from the file system.
FileData(Map<String, List<String> tags, String type, String type, File file, String filename, long timestamp) — Constructs a new File Data object using the contents of the specified file. The new object is assigned the specified tags and type. The file is memory mapped to avoid loading its entire content into memory all at once. The specified filename and timestamp are used instead of those associated with the file itself.
FileData(Map<String, List<String> tags, String type, MultiByteBuffer data, String filename, long timestamp) — Constructs a new File Data object using the contents of the specified MultiByteBuffer. The new object is assigned the specified tags and type. The data in the buffer is given the specified filename and timestamp.
getData() — Returns a MultiByteBuffer for accessing the file data stored in this data object.
getFileName() — Returns the filename associated with this data.
getTimestamp() — Returns the timestamp associated with this data.