Skip to content

What is the benefit of iterating over the stripes? #63

Description

@JensRantil

I'm looking at the example in the README, and the loop looks like this:

...

// Iterate over each stripe in the file.
for c.Stripes() {
    
    // Iterate over each row in the stripe.
    for c.Next() {
          
        // Retrieve a slice of interface values for the current row.
        log.Println(c.Row())
        
    }
   
}

...

What is the reason for the user having to iterate over the stripes? It feels very low-level. An alternative would be to simplify the API to

...

// Iterate over each row in the stripe.
for c.Next() {

    // Retrieve a slice of interface values for the current row.
    log.Println(c.Row())
   
}

...

...and have the cursor handle the stripes internally. Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions