code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "helpers/memenv/memenv.h"
#include "leveldb/env.h"
#include "leveldb/status.h"
#include "port... | zzxiaogx-leveldb | helpers/memenv/memenv.cc | C++ | bsd | 9,122 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
#define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
name... | zzxiaogx-leveldb | helpers/memenv/memenv.h | C++ | bsd | 677 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "helpers/memenv/memenv.h"
#include "db/db_impl.h"
#include "leveldb/db.h"
#include "leveldb/e... | zzxiaogx-leveldb | helpers/memenv/memenv_test.cc | C++ | bsd | 6,846 |
# Copyright (c) 2011 The LevelDB Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. See the AUTHORS file for names of contributors.
CC = g++
#-----------------------------------------------
# Uncomment exactly one of the lines labelled (... | zzxiaogx-leveldb | Makefile | Makefile | bsd | 7,012 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <string.h>
#include "util/coding.h"
#include "util/hash.h"
namespace leveldb {
uint32_t Hash... | zzxiaogx-leveldb | util/hash.cc | C++ | bsd | 958 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/coding.h"
namespace leveldb {
void EncodeFixed32(char* buf, uint32_t value) {
#if __BY... | zzxiaogx-leveldb | util/coding.cc | C++ | bsd | 4,887 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/env.h"
#include "port/port.h"
#include "util/testharness.h"
namespace leveldb {
st... | zzxiaogx-leveldb | util/env_test.cc | C++ | bsd | 2,209 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_RANDOM_H_
#define STORAGE_LEVELDB_UTIL_RANDOM_H_
#include <stdint.h>
nam... | zzxiaogx-leveldb | util/random.h | C++ | bsd | 2,057 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/cache.h"
#include <vector>
#include "util/coding.h"
#include "util/testharness.h"
n... | zzxiaogx-leveldb | util/cache_test.cc | C++ | bsd | 4,665 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <deque>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#includ... | zzxiaogx-leveldb | util/env_posix.cc | C++ | bsd | 14,488 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdio.h>
#include "port/port.h"
#include "leveldb/status.h"
namespace leveldb {
const char*... | zzxiaogx-leveldb | util/status.cc | C++ | bsd | 1,909 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/crc32c.h"
#include "util/testharness.h"
namespace leveldb {
namespace crc32c {
class C... | zzxiaogx-leveldb | util/crc32c_test.cc | C++ | bsd | 1,705 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/env.h"
namespace leveldb {
Env::~Env() {
}
SequentialFile::~SequentialFile() {
}
... | zzxiaogx-leveldb | util/env.cc | C++ | bsd | 1,628 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_TESTUTIL_H_
#define STORAGE_LEVELDB_UTIL_TESTUTIL_H_
#include "leveldb/en... | zzxiaogx-leveldb | util/testutil.h | C++ | bsd | 1,714 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_ARENA_H_
#define STORAGE_LEVELDB_UTIL_ARENA_H_
#include <cstddef>
#includ... | zzxiaogx-leveldb | util/arena.h | C++ | bsd | 1,795 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_TESTHARNESS_H_
#define STORAGE_LEVELDB_UTIL_TESTHARNESS_H_
#include <stdi... | zzxiaogx-leveldb | util/testharness.h | C++ | bsd | 4,666 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/coding.h"
#include "util/testharness.h"
namespace leveldb {
class Coding { };
TEST(C... | zzxiaogx-leveldb | util/coding_test.cc | C++ | bsd | 4,690 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_CRC32C_H_
#define STORAGE_LEVELDB_UTIL_CRC32C_H_
#include <stddef.h>
#inc... | zzxiaogx-leveldb | util/crc32c.h | C++ | bsd | 1,414 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Simple hash function used for internal data structures
#ifndef STORAGE_LEVELDB_UTIL_HASH_H_
#defi... | zzxiaogx-leveldb | util/hash.h | C++ | bsd | 524 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/arena.h"
#include <assert.h>
namespace leveldb {
static const int kBlockSize = 4096;
... | zzxiaogx-leveldb | util/arena.cc | C++ | bsd | 1,971 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_
#define STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_
#include "port/por... | zzxiaogx-leveldb | util/mutexlock.h | C++ | bsd | 1,001 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// A portable implementation of crc32c, optimized to handle
// four bytes at a time.
#include "util/... | zzxiaogx-leveldb | util/crc32c.cc | C++ | bsd | 14,934 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Endian-neutral encoding:
// * Fixed-length numbers are encoded with least-significant byte first
/... | zzxiaogx-leveldb | util/coding.h | C++ | bsd | 3,928 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <algorithm>
#include <stdint.h>
#include "leveldb/comparator.h"
#include "leveldb/slice.h"
#in... | zzxiaogx-leveldb | util/comparator.cc | C++ | bsd | 1,980 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "leveldb/cache.h"
#include "port/p... | zzxiaogx-leveldb | util/cache.cc | C++ | bsd | 8,712 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/testutil.h"
#include "util/random.h"
namespace leveldb {
namespace test {
Slice Rando... | zzxiaogx-leveldb | util/testutil.cc | C++ | bsd | 1,413 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Must not be included from any .h files to avoid polluting the namespace
// with macros.
#ifndef S... | zzxiaogx-leveldb | util/logging.h | C++ | bsd | 1,572 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/arena.h"
#include "util/random.h"
#include "util/testharness.h"
namespace leveldb {
c... | zzxiaogx-leveldb | util/arena_test.cc | C++ | bsd | 1,648 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <math.h>
#include <stdio.h>
#include "port/port.h"
#include "util/histogram.h"
namespace leve... | zzxiaogx-leveldb | util/histogram.cc | C++ | bsd | 4,707 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/testharness.h"
#include <string>
#include <stdlib.h>
#include <sys/stat.h>
#include <sy... | zzxiaogx-leveldb | util/testharness.cc | C++ | bsd | 1,624 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/options.h"
#include "leveldb/comparator.h"
#include "leveldb/env.h"
namespace level... | zzxiaogx-leveldb | util/options.cc | C++ | bsd | 715 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_HISTOGRAM_H_
#define STORAGE_LEVELDB_UTIL_HISTOGRAM_H_
#include <string>
... | zzxiaogx-leveldb | util/histogram.h | C++ | bsd | 903 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/logging.h"
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h... | zzxiaogx-leveldb | util/logging.cc | C++ | bsd | 1,847 |
// Copyright 2011 Google Inc. All Rights Reserved.
// Author: sanjay@google.com (Sanjay Ghemawat)
//
// Logger implementation that can be shared by all environments
// where enough posix functionality is available.
#ifndef STORAGE_LEVELDB_UTIL_POSIX_LOGGER_H_
#define STORAGE_LEVELDB_UTIL_POSIX_LOGGER_H_
#include <alg... | zzxiaogx-leveldb | util/posix_logger.h | C++ | bsd | 2,605 |
body {
margin-left: 0.5in;
margin-right: 0.5in;
background: white;
color: black;
}
h1 {
margin-left: -0.2in;
font-size: 14pt;
}
h2 {
margin-left: -0in;
font-size: 12pt;
}
h3 {
margin-left: -0in;
}
h4 {
margin-left: -0in;
}
hr {
margin-left: -0in;
}
/* Definition lists: definition term bold */
dt... | zzxiaogx-leveldb | doc/doc.css | CSS | bsd | 1,127 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdio.h>
#include <stdlib.h>
#include <kcpolydb.h>
#include "util/histogram.h"
#include "util... | zzxiaogx-leveldb | doc/bench/db_bench_tree_db.cc | C++ | bsd | 15,180 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdio.h>
#include <stdlib.h>
#include <sqlite3.h>
#include "util/histogram.h"
#include "util/... | zzxiaogx-leveldb | doc/bench/db_bench_sqlite3.cc | C++ | bsd | 21,812 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="doc.css" />
<title>Leveldb file layout and compactions</title>
</head>
<body>
<h1>Files</h1>
The implementation of leveldb is similar in spirit to the
representation of a single
<a href="http://labs.google.com/papers/bigtable.html">
Bigtable ... | zzxiaogx-leveldb | doc/impl.html | HTML | bsd | 8,279 |
<!DOCTYPE html>
<html>
<head>
<title>LevelDB Benchmarks</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
body {
font-family:Helvetica,sans-serif;
padding:20px;
}
h2 {
padding-top:30px;
}
table.bn {
width:800px;
border-collapse:collapse;
border:0;
padding:0;
}
table.bn... | zzxiaogx-leveldb | doc/benchmark.html | HTML | bsd | 20,970 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="doc.css" />
<title>Leveldb</title>
</head>
<body>
<h1>Leveldb</h1>
<address>Jeff Dean, Sanjay Ghemawat</address>
<p>
The <code>leveldb</code> library provides a persistent key value store. Keys and
values are arbitrary byte arrays. The keys a... | zzxiaogx-leveldb | doc/index.html | HTML | bsd | 19,272 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// WriteBatch holds a collection of updates to apply atomically to a DB.
//
// The updates are applie... | zzxiaogx-leveldb | include/leveldb/write_batch.h | C++ | bsd | 1,826 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_INCLUDE_DB_H_
#define STORAGE_LEVELDB_INCLUDE_DB_H_
#include <stdint.h>
#inclu... | zzxiaogx-leveldb | include/leveldb/db.h | C++ | bsd | 5,627 |
/* Copyright (c) 2011 The LevelDB Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. See the AUTHORS file for names of contributors.
C bindings for leveldb. May be useful as a stable ABI that can be
used by programs that keep leveldb... | zzxiaogx-leveldb | include/leveldb/c.h | C | bsd | 8,369 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Slice is a simple structure containing a pointer into some external
// storage and a size. The us... | zzxiaogx-leveldb | include/leveldb/slice.h | C++ | bsd | 3,106 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_INCLUDE_TABLE_H_
#define STORAGE_LEVELDB_INCLUDE_TABLE_H_
#include <stdint.h>
... | zzxiaogx-leveldb | include/leveldb/table.h | C++ | bsd | 2,462 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_INCLUDE_OPTIONS_H_
#define STORAGE_LEVELDB_INCLUDE_OPTIONS_H_
#include <stddef... | zzxiaogx-leveldb | include/leveldb/options.h | C++ | bsd | 7,063 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_
#define STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_
#include <... | zzxiaogx-leveldb | include/leveldb/comparator.h | C++ | bsd | 2,327 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// An iterator yields a sequence of key/value pairs from a source.
// The following class defines the... | zzxiaogx-leveldb | include/leveldb/iterator.h | C++ | bsd | 3,480 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// An Env is an interface used by the leveldb implementation to access
// operating system functional... | zzxiaogx-leveldb | include/leveldb/env.h | C++ | bsd | 11,443 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// TableBuilder provides the interface used to build a Table
// (an immutable and sorted map from key... | zzxiaogx-leveldb | include/leveldb/table_builder.h | C++ | bsd | 3,294 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// A Cache is an interface that maps keys to values. It has internal
// synchronization and may be s... | zzxiaogx-leveldb | include/leveldb/cache.h | C++ | bsd | 3,512 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// A Status encapsulates the result of an operation. It may indicate success,
// or it may indicate ... | zzxiaogx-leveldb | include/leveldb/status.h | C++ | bsd | 3,090 |
#!/bin/sh
# Detects OS we're compiling on and generates build_config.mk,
# which in turn gets read while processing Makefile.
# build_config.mk will set the following variables:
# - PORT_CFLAGS will either set:
# -DLEVELDB_PLATFORM_POSIX if cstatomic is present
# -DLEVELDB_PLATFORM_NOATOMI... | zzxiaogx-leveldb | build_detect_platform | Shell | bsd | 2,490 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "table/merger.h"
#include "leveldb/comparator.h"
#include "leveldb/iterator.h"
#include "tabl... | zzxiaogx-leveldb | table/merger.cc | C++ | bsd | 4,875 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/table_builder.h"
#include <assert.h>
#include <stdio.h>
#include "leveldb/comparator... | zzxiaogx-leveldb | table/table_builder.cc | C++ | bsd | 6,783 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_
#define STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_... | zzxiaogx-leveldb | table/two_level_iterator.h | C++ | bsd | 1,201 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// BlockBuilder generates blocks where keys are prefix-compressed:
//
// When we store a key, we drop... | zzxiaogx-leveldb | table/block_builder.cc | C++ | bsd | 3,634 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/iterator.h"
namespace leveldb {
Iterator::Iterator() {
cleanup_.function = NULL;
... | zzxiaogx-leveldb | table/iterator.cc | C++ | bsd | 1,666 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_
#define STORAGE_LEVELDB_TABLE_BLOCK_H_
#include <stddef.h>
#inc... | zzxiaogx-leveldb | table/block.h | C++ | bsd | 990 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_
#define STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_
na... | zzxiaogx-leveldb | table/iterator_wrapper.h | C++ | bsd | 2,031 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "table/format.h"
#include "leveldb/env.h"
#include "port/port.h"
#include "table/block.h"
#in... | zzxiaogx-leveldb | table/format.cc | C++ | bsd | 4,167 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "table/two_level_iterator.h"
#include "leveldb/table.h"
#include "table/block.h"
#include "ta... | zzxiaogx-leveldb | table/two_level_iterator.cc | C++ | bsd | 4,666 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/table.h"
#include <map>
#include <string>
#include "db/dbformat.h"
#include "db/memt... | zzxiaogx-leveldb | table/table_test.cc | C++ | bsd | 23,716 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
#define STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
#include... | zzxiaogx-leveldb | table/block_builder.h | C++ | bsd | 1,745 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_TABLE_MERGER_H_
#define STORAGE_LEVELDB_TABLE_MERGER_H_
namespace leveldb {
c... | zzxiaogx-leveldb | table/merger.h | C++ | bsd | 845 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_TABLE_FORMAT_H_
#define STORAGE_LEVELDB_TABLE_FORMAT_H_
#include <string>
#inc... | zzxiaogx-leveldb | table/format.h | C++ | bsd | 2,979 |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "leveldb/table.h"
#include "leveldb/cache.h"
#include "leveldb/env.h"
#include "table/block.h... | zzxiaogx-leveldb | table/table.cc | C++ | bsd | 5,258 |
# -*- coding: utf-8 -*-
"""
@autor Emilio Ramirez
"""
class ConnectionDB:
"""This class manage the connection with the Database"""
def __init__(self, host='localhost', port=3306, namedb='',
user='', password='', scheme=''):
""" Constructor of class
@param String host of the ... | zzqchy-qaw1 | python/quickdb/db/connection.py | Python | lgpl | 4,338 |
import re
import datetime
def is_valid_field():
pass
| zzqchy-qaw1 | python/quickdb/validation.py | Python | lgpl | 58 |
package quickdb.model;
import quickdb.annotation.*;
@Table
public class Page{
@Column(type=Properties.TYPES.PRIMARYKEY)
@ColumnDefinition(type=Definition.DATATYPE.INT, length=11,
autoIncrement=true, primary=true)
private int id;
@Column
@ColumnDefinition(type=Definition.DATATYPE.INTEGER)
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Page.java | Java | lgpl | 893 |
package quickdb.model;
import java.util.ArrayList;
public class Pruebas {
private int id;
private String descripcion;
private ArrayList prueba2;
public Pruebas(){
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Pruebas.java | Java | lgpl | 918 |
package quickdb.model;
import quickdb.annotation.*;
@Table
public class Person{
@Column(type=Properties.TYPES.PRIMARYKEY)
private int id;
@Column(name="name")
private String personName;
@Column(getter="getPersonAge", setter="setPersonAge")
private int age;
public Person(){
this.p... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Person.java | Java | lgpl | 877 |
package quickdb.model;
import quickdb.annotation.*;
@Table
public class Prueba{
@Column(type=Properties.TYPES.PRIMARYKEY)
@ColumnDefinition(type=Definition.DATATYPE.INT, length=11,
autoIncrement=true, primary=true)
private int id;
@Column
@ColumnDefinition
private String name;
public... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Prueba.java | Java | lgpl | 670 |
package quickdb.model;
import quickdb.annotation.*;
@Table
public class PruebaParent {
@Column(type = Properties.TYPES.PRIMARYKEY)
@ColumnDefinition(type=Definition.DATATYPE.INT, length=11,
autoIncrement=true, primary=true)
private int id;
@Column
@ColumnDefinition
private String nameParen... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/PruebaParent.java | Java | lgpl | 1,187 |
package quickdb.model;
import quickdb.annotation.*;
@Parent
@Table
public class PruebaChild extends PruebaParent{
@Column(type=Properties.TYPES.PRIMARYKEY)
@ColumnDefinition(type=Definition.DATATYPE.INT, length=11,
autoIncrement=true, primary=true)
private int id;
@Column
@ColumnDefinition
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/PruebaChild.java | Java | lgpl | 644 |
package quickdb.model;
public class Dog{
private int id;
private String name;
private String color;
private Race idRace;
public Dog(){
this.idRace = new Race();
this.name = "";
this.color = "";
}
public int getId() {
return id;
}
public void setId... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Dog.java | Java | lgpl | 765 |
package quickdb.model;
import quickdb.annotation.Table;
@Table("AlterTable")
public class Alter2 {
private int id;
private String name;
private double extend;
public void setExtend(double extend) {
this.extend = extend;
}
public void setId(int id) {
this.id = id;
}
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Alter2.java | Java | lgpl | 561 |
package quickdb.model;
import quickdb.annotation.*;
@Table("address")
public class Address{
@Column(type=Properties.TYPES.PRIMARYKEY)
private int id;
@Column
@ColumnDefinition
private String street;
@Column(type=Properties.TYPES.FOREIGNKEY)
private District idDistrict;
public Address... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Address.java | Java | lgpl | 953 |
package quickdb.model;
import java.util.ArrayList;
import quickdb.annotation.*;
@Table
public class Book{
@Column(type=Properties.TYPES.PRIMARYKEY)
@ColumnDefinition(type=Definition.DATATYPE.INT, length=11,
autoIncrement=true, primary=true)
private int id;
@Column
@ColumnDefinition
privat... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Book.java | Java | lgpl | 1,509 |
package quickdb.model;
import quickdb.annotation.Table;
@Table("AlterTable")
public class Alter1 {
private int id;
private String name;
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Alter1.java | Java | lgpl | 392 |
package quickdb.model;
public class Race{
private int id;
private String name;
public Race(){
this.name = "";
}
public Race(String name){
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
p... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Race.java | Java | lgpl | 446 |
package quickdb.model;
import quickdb.annotation.*;
@Table("district")
public class District{
@Column(type=Properties.TYPES.PRIMARYKEY)
private int id;
@Column
private String name;
public District(String name){
this.name = name;
}
public int getId() {
return id;
}
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/District.java | Java | lgpl | 511 |
package quickdb.model;
public class Prueba2 {
private int id;
private String nombre;
public Prueba2(){
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Prueba2.java | Java | lgpl | 568 |
package quickdb.model;
import java.sql.Date;
public class Primitive {
private int id;
private int intNumber;
private double doubleNumber;
private float floatNumber;
private String string;
private Date date;
public void setDate(Date date) {
this.date = date;
}
public void... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/Primitive.java | Java | lgpl | 1,119 |
package quickdb.model;
import quickdb.annotation.*;
@Table
public class SuperPrueba{
@Column(type=Properties.TYPES.PRIMARYKEY)
@ColumnDefinition(type=Definition.DATATYPE.INT, length=11,
autoIncrement=true, primary=true)
private int id;
@Column
@ColumnDefinition
private String name;
@C... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/model/SuperPrueba.java | Java | lgpl | 1,026 |
package quickdb.binding.model;
import quickdb.db.AdminBinding;
import java.sql.Date;
public class BindingObject extends AdminBinding{
private int id;
private String name;
private Date birth;
private double salary;
public void setBirth(Date birth) {
this.birth = birth;
}
public v... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/binding/model/BindingObject.java | Java | lgpl | 752 |
package quickdb.binding;
import quickdb.binding.model.BindingObject;
public class BindingTest {
public BindingTest(){
System.out.println("-----------------");
System.out.println("BindingTest");
System.out.println("testDelete");
this.testDelete();
System.out.println("testMo... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/binding/BindingTest.java | Java | lgpl | 3,406 |
package quickdb.query.model;
public class AnotherClass extends AnotherParent{
private int id;
private String property;
public void setProperty(String property) {
this.property = property;
}
public String getProperty() {
return property;
}
}
| zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/AnotherClass.java | Java | lgpl | 286 |
package quickdb.query.model;
public class ReferenceQuery extends ReferenceParent{
private int id;
private String value;
public void setValue(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}
| zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/ReferenceQuery.java | Java | lgpl | 269 |
package quickdb.query.model;
/**
*
* @author Diego Sarmentero
*/
public class QueryWithSubquery {
private int id;
private String name;
private ObjectSubquery subQuery;
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/QueryWithSubquery.java | Java | lgpl | 600 |
package quickdb.query.model;
import quickdb.annotation.Column;
/**
*
* @author Diego Sarmentero
*/
public class ObjectSummary {
private int id;
private int value; //THIS
@Column(summary="+value")
private double summmary;
@Column(name="accountSalary")
private double salary; //THIS
@Colu... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/ObjectSummary.java | Java | lgpl | 1,733 |
package quickdb.query.model;
import java.sql.Date;
public class CompleteQuery {
private int id;
private String name;
private double salary;
private int age;
private Date birth;
private boolean cond;
public void setAge(int age) {
this.age = age;
}
public int getAge() {
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/CompleteQuery.java | Java | lgpl | 995 |
package quickdb.query.model;
public class AnotherParent {
private int id;
private double mount;
private String description;
public void setDescription(String description) {
this.description = description;
}
public void setId(int id) {
this.id = id;
}
public void setM... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/AnotherParent.java | Java | lgpl | 561 |
package quickdb.query.model;
public class ReferenceParent {
private int id;
private String valueParent;
public void setId(int id) {
this.id = id;
}
public void setValueParent(String valueParent) {
this.valueParent = valueParent;
}
public int getId() {
return id;
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/ReferenceParent.java | Java | lgpl | 401 |
package quickdb.query.model;
/**
*
* @author Diego Sarmentero
*/
public class ObjectSubquery {
private int id;
private String value;
public ObjectSubquery(String value) {
this.value = value;
}
public ObjectSubquery() {
}
public void setId(int id) {
this.id = id;
}... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/ObjectSubquery.java | Java | lgpl | 511 |
package quickdb.query.model;
public class UserQuery extends UserParent{
private int id;
private String name;
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return id;
}
public Strin... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/UserQuery.java | Java | lgpl | 364 |
package quickdb.query.model;
public class UserParent {
private int id;
private String description;
private ReferenceQuery reference;
public void setDescription(String description) {
this.description = description;
}
public void setId(int id) {
this.id = id;
}
public ... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/UserParent.java | Java | lgpl | 610 |
package quickdb.query.model;
import java.util.ArrayList;
/**
*
* @author Diego Sarmentero
*/
public class QueryWithCollection {
private int id;
private String description;
private ArrayList<QueryCollection> queryCollection;
public void setDescription(String description) {
this.description... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/QueryWithCollection.java | Java | lgpl | 765 |
package quickdb.query.model;
/**
*
* @author Diego Sarmentero
*/
public class QueryCollection {
private int id;
private int value;
public QueryCollection() {
}
public QueryCollection(int value) {
this.value = value;
}
public void setId(int id) {
this.id = id;
}
... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/model/QueryCollection.java | Java | lgpl | 502 |
package quickdb.query;
import quickdb.db.AdminBase;
import quickdb.query.model.AnotherClass;
import quickdb.query.model.AnotherParent;
import quickdb.query.model.CompleteQuery;
import quickdb.query.model.ObjectSubquery;
import quickdb.query.model.ObjectSummary;
import quickdb.query.model.QueryCollection;
import quickd... | zzqchy-qaw1 | testing/QuickDBTesting/src/main/java/quickdb/query/QueryTest.java | Java | lgpl | 15,414 |