- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Wrapper around `flock()` for advisory filesystem locking. Usage is straightforward:
- Class
- Release the lock. Throws an exception on failure, e.g. if the lock is not currently held.
- Method
- Acquire the lock. If lock acquisition fails because the lock is held by another process, throws @{class:PhutilLockException}. Other exceptions indicate that lock acquisition has failed for reasons unrelated to locking.
- Method
- Create a new lock on a lockfile. The file need not exist yet.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Abstraction for processing large inputs without holding them in memory. This class implements line-oriented, buffered reads of some external stream, where a "line" is characterized by some delimiter character. This provides a straightforward interface for most large-input tasks, with relatively good performance.
- Class
- Method
- Method
- Method
- Method
- Method
- Called when the iterator needs more data. The subclass should return more data, or empty string to indicate end-of-stream.
- Method
- Hook, called before @{method:rewind()}. Allows a concrete implementation to open resources or reset state.
- Method
- Change the "line" delimiter character, which defaults to "\n". This is used to determine where each line ends.
- Method
- Read the output stream of an @{class:ExecFuture} one line at a time. This abstraction allows you to process large inputs without holding them in memory. If you know your inputs fit in memory, it is generally more efficient (and certainly simpler) to read the entire input and `explode()` it. For more information, see @{class:LinesOfALarge}. See also @{class:LinesOfALargeFile} for a similar abstraction that works on files.
- Class
- Read more data from the subprocess.
- Method
- The PHP `foreach()` construct calls rewind() once, so we allow the first `rewind()`, without effect. Subsequent rewinds mean misuse.
- Method
- On destruction, we terminate the subprocess if it hasn't exited already.
- Method
- To construct, pass an @{class:ExecFuture}.
- Method
- Read the lines of a file, one at a time. This allows you to process large files without holding them in memory. In most cases, it is more efficient (and certainly simpler) to read the entire file and `explode()` it. For more information, see @{class:LinesOfALarge}. See also @{class:LinesOfALargeExecFuture}, for a similar abstraction that works on executed commands.
- Class
- Read the file chunk-by-chunk.
- Method
- Closes the file handle if it is open, and reopens it.
- Method
- Close the file handle, if it is open.
- Method
- Closes the file handle.
- Method
- To construct, pass the path to a file.
- Method
- Exception thrown by Filesystem to indicate an error accessing the file system.
- Class
- Create a new FilesystemException, providing a path and a message.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method