import (
_ "net/http/pprof"
"net/http"
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Cols { | |
int count; // # of cols | |
void **col_ptr; // Pointer to an array of column data (arrays) | |
uint8_t **nulls_ptr; // Pointer to an array of null values | |
} | |
bool groupby_rows_equal(size_t row_id, Cols* rhs, Cols* rhs) { | |
void *rhs_col, *lhs_col; | |
uint8_t rhs_null, rhs_null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::marker::PhantomData; | |
use std::fmt::Display; | |
use ::allocator::Allocator; | |
use ::block::{Block, View, RefColumn, column_rows, column_nulls}; | |
use ::error::DBError; | |
use ::expression::*; | |
use ::row::RowOffset; | |
use ::schema::{Attribute, Schema}; | |
use ::types::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::marker::PhantomData; | |
use std::fmt::Display; | |
use ::allocator::Allocator; | |
use ::block::{Block, View, RefColumn, column_rows, column_nulls}; | |
use ::error::DBError; | |
use ::expression::*; | |
use ::row::RowOffset; | |
use ::schema::{Attribute, Schema}; | |
use ::types::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::marker::PhantomData; | |
use std::fmt::Display; | |
use ::allocator::Allocator; | |
use ::block::{Block, View, RefColumn, column_rows, column_nulls}; | |
use ::error::DBError; | |
use ::expression::*; | |
use ::row::RowOffset; | |
use ::schema::{Attribute, Schema}; | |
use ::types::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them) | |
[error] .map(MapMacro.makeMapper[LogSchemaV6]) | |
[error] ^ | |
[error] one error found | |
[error] (job/compile:compileIncremental) Compilation failed | |
[error] Total time: 9 s, completed Oct 7, 2016 11:18:57 AM | |
Job.scala: | |
inputFiles(conf.input) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mtanski@buildbox:~/world/mr_jobs$ cat build.sbt | |
import Dependencies._ | |
name := "mr_jobs" | |
scalaVersion in ThisBuild := "2.11.8" | |
scalacOptions += "-Ymacro-debug-lite -Yrangepos" | |
lazy val commonSettings = Seq( | |
organization := "com.adfin", | |
version := "0.5.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void bools_and(unsigned count, const u8 *rhs, const u8 *lhs, u8 *out) { | |
for (unsigned off = 0; off < count; off++) { | |
out[off] = rhs[off] & lhs[off]; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[cfg(test)] | |
mod tests { | |
use super::*; | |
use ::allocator; | |
use ::schema::{Attribute, Schema}; | |
use ::operation::{Cursor, Operation, ScanView}; | |
use ::projector::*; | |
use ::table::{Table, TableAppender}; | |
use ::types::*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <emmintrin.h> | |
#include <pmmintrin.h> | |
uint32_t shifts[] = { | |
1 << 23, 1 << 22, 1 << 21, 1 << 20, | |
1 << 19, 1 << 18, 1 << 17, 1 << 16, |
NewerOlder