Comments (1)
Update - I missed the ability to simply create a new reader per-range-iteration as shown below. In the future, I still believe it'll be more developer-friendly to find a safe way to export these accessors and reference the same ones.
collection.Query(func(txn *column.Txn) error {
// filter rows
for colname, colval := range filters {
txn = txn.WithValue(colname, func(v interface{}) bool {
return v == colval
})
}
return txn.Range(func (i uint32) {
row_obj := make(column.Object)
for _, sel := range selectors {
value, _ := txn.Any(sel).Get()
row_obj[sel] = value
}
result_rows = append(result_rows, row_obj)
})
return nil
})
from column.
Related Issues (20)
- Empty columns?
- Enum vs String HOT 1
- Allow for int column names
- Cross collection transactions? HOT 1
- Count() incorrect for tx rollback.
- Q: Timestamp-based index, multiple tables, joins HOT 1
- Non deterministic filter results HOT 6
- [Feature Request]: Simper collection creation & data insertion & and Query HOT 1
- [Feature Request] more powerful index HOT 1
- The performance seems low... HOT 2
- [Feature Request] set pk column after columns creation HOT 1
- how do I efficiently query for unique values of a field HOT 2
- possible memory leak when taking a snapshot HOT 2
- Duplicate index entries HOT 2
- Database query with time.Time HOT 1
- Panic when adding many values HOT 1
- large strings HOT 1
- question about chunk and buffer HOT 2
- Are there plans to store the database on disk? HOT 1
- Unset a column? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from column.