IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo struct

PlainSink

struct PlainSink

Writes the selected columns to one int32 buffer.

Fields​

  • ​out_idxs (Pointer[Int32, MutUntrackedOrigin]): Flat [rows, K] output buffer.

Implemented traits​

AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable, RegisterPassable, TopkSink, TrivialRegisterPassable

Methods​

__init__​

def __init__(out_idxs: Pointer[Int32, MutAnyOrigin]) -> Self

Wraps an output buffer.

Args:

store​

def store(self, idx: Int, col: Int32)

Writes col to out_idxs[idx].

Args:

  • ​idx (Int): Flat output slot.
  • ​col (Int32): Selected column, or -1.

Was this page helpful?