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 "leveldb/env.h" #include "port/port.h" #include "util/testharness.h" namespace leveldb { st...
zyf873753-zyf-leveldb
util/env_test.cc
C++
bsd
2,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. #ifndef STORAGE_LEVELDB_UTIL_RANDOM_H_ #define STORAGE_LEVELDB_UTIL_RANDOM_H_ #include <stdint.h> nam...
zyf873753-zyf-leveldb
util/random.h
C++
bsd
2,174
// 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...
zyf873753-zyf-leveldb
util/cache_test.cc
C++
bsd
4,687
// 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 <set> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <pth...
zyf873753-zyf-leveldb
util/env_posix.cc
C++
bsd
15,371
// 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*...
zyf873753-zyf-leveldb
util/status.cc
C++
bsd
1,931
// 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...
zyf873753-zyf-leveldb
util/crc32c_test.cc
C++
bsd
1,748
// Copyright (c) 2012 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/filter_policy.h" #include "util/coding.h" #include "util/logging.h" #include "util/t...
zyf873753-zyf-leveldb
util/bloom_test.cc
C++
bsd
3,788
// 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() { } ...
zyf873753-zyf-leveldb
util/env.cc
C++
bsd
2,114
// 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...
zyf873753-zyf-leveldb
util/testutil.h
C++
bsd
1,758
// 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 <vector> #include...
zyf873753-zyf-leveldb
util/arena.h
C++
bsd
1,818
// 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...
zyf873753-zyf-leveldb
util/testharness.h
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/coding.h" #include "util/testharness.h" namespace leveldb { class Coding { }; TEST(C...
zyf873753-zyf-leveldb
util/coding_test.cc
C++
bsd
5,527
// 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...
zyf873753-zyf-leveldb
util/crc32c.h
C++
bsd
1,457
// Copyright (c) 2012 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/filter_policy.h" #include "leveldb/slice.h" #include "util/hash.h" namespace leveld...
zyf873753-zyf-leveldb
util/bloom.cc
C++
bsd
2,918
// 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...
zyf873753-zyf-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; ...
zyf873753-zyf-leveldb
util/arena.cc
C++
bsd
1,985
// 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...
zyf873753-zyf-leveldb
util/mutexlock.h
C++
bsd
1,129
// 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/...
zyf873753-zyf-leveldb
util/crc32c.cc
C++
bsd
14,977
// 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 /...
zyf873753-zyf-leveldb
util/coding.h
C++
bsd
4,050
// 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...
zyf873753-zyf-leveldb
util/comparator.cc
C++
bsd
2,184
// 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...
zyf873753-zyf-leveldb
util/cache.cc
C++
bsd
8,664
// 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...
zyf873753-zyf-leveldb
util/testutil.cc
C++
bsd
1,457
// 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...
zyf873753-zyf-leveldb
util/logging.h
C++
bsd
1,594
// Copyright (c) 2012 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/filter_policy.h" namespace leveldb { FilterPolicy::~FilterPolicy() { } } // names...
zyf873753-zyf-leveldb
util/filter_policy.cc
C++
bsd
333
// 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...
zyf873753-zyf-leveldb
util/arena_test.cc
C++
bsd
1,679
// 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...
zyf873753-zyf-leveldb
util/histogram.cc
C++
bsd
4,729
// 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...
zyf873753-zyf-leveldb
util/testharness.cc
C++
bsd
1,668
// 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...
zyf873753-zyf-leveldb
util/options.cc
C++
bsd
764
// 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> ...
zyf873753-zyf-leveldb
util/histogram.h
C++
bsd
925
// 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...
zyf873753-zyf-leveldb
util/logging.cc
C++
bsd
1,869
// 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. // // Logger implementation that can be shared by all environments // where enough posix functionality i...
zyf873753-zyf-leveldb
util/posix_logger.h
C++
bsd
2,745
// Copyright (c) 2013 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. // Test for issue 178: a manual compaction causes deleted data to reappear. #include <iostream> #includ...
zyf873753-zyf-leveldb
issues/issue178_test.cc
C++
bsd
2,569
// Copyright (c) 2013 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. // Test for issue 200: when iterator switches direction from backward // to forward, the current key ca...
zyf873753-zyf-leveldb
issues/issue200_test.cc
C++
bsd
1,701
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...
zyf873753-zyf-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...
zyf873753-zyf-leveldb
doc/bench/db_bench_tree_db.cc
C++
bsd
15,945
// 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/...
zyf873753-zyf-leveldb
doc/bench/db_bench_sqlite3.cc
C++
bsd
22,586
<!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://research.google.com/archive/bigtable.html"> Bigt...
zyf873753-zyf-leveldb
doc/impl.html
HTML
bsd
8,284
<!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...
zyf873753-zyf-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...
zyf873753-zyf-leveldb
doc/index.html
HTML
bsd
21,366
// 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...
zyf873753-zyf-leveldb
include/leveldb/write_batch.h
C++
bsd
1,848
// 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...
zyf873753-zyf-leveldb
include/leveldb/db.h
C++
bsd
6,405
/* 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...
zyf873753-zyf-leveldb
include/leveldb/c.h
C
bsd
9,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. // // Slice is a simple structure containing a pointer into some external // storage and a size. The us...
zyf873753-zyf-leveldb
include/leveldb/slice.h
C++
bsd
3,131
// 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> ...
zyf873753-zyf-leveldb
include/leveldb/table.h
C++
bsd
2,963
// 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...
zyf873753-zyf-leveldb
include/leveldb/options.h
C++
bsd
6,815
// 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 <...
zyf873753-zyf-leveldb
include/leveldb/comparator.h
C++
bsd
2,349
// 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...
zyf873753-zyf-leveldb
include/leveldb/iterator.h
C++
bsd
3,502
// 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...
zyf873753-zyf-leveldb
include/leveldb/env.h
C++
bsd
11,957
// 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...
zyf873753-zyf-leveldb
include/leveldb/table_builder.h
C++
bsd
3,395
// 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...
zyf873753-zyf-leveldb
include/leveldb/cache.h
C++
bsd
3,534
// 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 ...
zyf873753-zyf-leveldb
include/leveldb/status.h
C++
bsd
3,350
// Copyright (c) 2012 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 database can be configured with a custom FilterPolicy object. // This object is responsible for ...
zyf873753-zyf-leveldb
include/leveldb/filter_policy.h
C++
bsd
2,925
#!/bin/sh # # Detects OS we're compiling on and outputs a file specified by the first # argument, which in turn gets read while processing Makefile. # # The output will set the following variables: # CC C Compiler path # CXX C++ Compiler path # PLATFORM_LDFLAGS ...
zyf873753-zyf-leveldb
build_detect_platform
Shell
bsd
7,253
// 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...
zyf873753-zyf-leveldb
table/merger.cc
C++
bsd
4,911
// 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 "leveldb/comparator.h" #include "level...
zyf873753-zyf-leveldb
table/table_builder.cc
C++
bsd
8,100
// 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_...
zyf873753-zyf-leveldb
table/two_level_iterator.h
C++
bsd
1,223
// 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...
zyf873753-zyf-leveldb
table/block_builder.cc
C++
bsd
3,656
// Copyright (c) 2012 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/filter_block.h" #include "leveldb/filter_policy.h" #include "util/coding.h" namespace...
zyf873753-zyf-leveldb
table/filter_block.cc
C++
bsd
3,381
// 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; ...
zyf873753-zyf-leveldb
table/iterator.cc
C++
bsd
1,702
// 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...
zyf873753-zyf-leveldb
table/block.h
C++
bsd
1,034
// Copyright (c) 2012 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/filter_block.h" #include "leveldb/filter_policy.h" #include "util/coding.h" #include "...
zyf873753-zyf-leveldb
table/filter_block_test.cc
C++
bsd
3,691
// 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...
zyf873753-zyf-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...
zyf873753-zyf-leveldb
table/format.cc
C++
bsd
4,587
// Copyright (c) 2012 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 filter block is stored near the end of a Table file. It contains // filters (e.g., bloom filter...
zyf873753-zyf-leveldb
table/filter_block.h
C++
bsd
2,248
// 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...
zyf873753-zyf-leveldb
table/two_level_iterator.cc
C++
bsd
4,702
// 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...
zyf873753-zyf-leveldb
table/table_test.cc
C++
bsd
24,135
// 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...
zyf873753-zyf-leveldb
table/block_builder.h
C++
bsd
1,767
// 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...
zyf873753-zyf-leveldb
table/merger.h
C++
bsd
867
// 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...
zyf873753-zyf-leveldb
table/format.h
C++
bsd
3,142
// 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/comparator.h" #include "leveld...
zyf873753-zyf-leveldb
table/table.cc
C++
bsd
8,187
package net.coobird.thumbnailator; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.util.Collections; import java.util.List; import net.coobird.thumbnailator.filters.ImageFilter; import net.coobird.thumbnailator.geometry.Region; import net.coobird.thumbnailator.resizers.Resizer; ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/ThumbnailParameter.java
Java
mit
20,920
package net.coobird.thumbnailator.makers; import java.awt.image.BufferedImage; import java.util.HashMap; import java.util.Map; import net.coobird.thumbnailator.builders.BufferedImageBuilder; import net.coobird.thumbnailator.resizers.Resizer; import net.coobird.thumbnailator.resizers.ResizerFactory; /** *...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/makers/ThumbnailMaker.java
Java
mit
6,601
package net.coobird.thumbnailator.makers; import java.awt.image.BufferedImage; /** * A {@link ThumbnailMaker} which resizes an image to a specified dimension * when producing a thumbnail. * <p> * Optionally, if the aspect ratio of the thumbnail is to be maintained the same * as the original image (by ca...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/makers/FixedSizeThumbnailMaker.java
Java
mit
5,785
/** * This package provides classes which can be used to make thumbnails given * parameters to create the images. */ package net.coobird.thumbnailator.makers;
zyslovely-thumbnailator
src/net/coobird/thumbnailator/makers/package-info.java
Java
mit
167
package net.coobird.thumbnailator.makers; import java.awt.image.BufferedImage; /** * A {@link ThumbnailMaker} which scales an image by a specified scaling factor * when producing a thumbnail. * <p> * <DL> * <DT><B>Usage:</B></DT> * <DD> * The following example demonstrates how to create a thumbnail ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/makers/ScaledThumbnailMaker.java
Java
mit
4,699
package net.coobird.thumbnailator.geometry; import java.awt.Point; /** * This interface is implemented by classes which calculate how to position an * object inside of an enclosing object. * * @author coobird * */ public interface Position { /** * Calculates the position of an object enclosed...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/Position.java
Java
mit
1,423
package net.coobird.thumbnailator.geometry; import java.awt.Point; /** * This class calculates the position of an image which is to be enclosed, * using an absolute coordinate at which the image should be located. * * @author coobird * */ public final class Coordinate implements Position { /** ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/Coordinate.java
Java
mit
1,166
/** * This package contains classes used to specify positioning of watermarks and * other objects in Thumbnailator. */ package net.coobird.thumbnailator.geometry;
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/package-info.java
Java
mit
171
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; /** * A {@link Size} object which indicates that the size of the enclosed object * should be the specified absolute size. * * @author coobird * @since 0.3.4 * */ public class AbsoluteSize implements Size { /** * The size ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/AbsoluteSize.java
Java
mit
1,786
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; /** * Calculates the size of an enclosed object relative to the enclosing object. * * @author coobird * @since 0.3.4 * */ public class RelativeSize implements Size { /** * The scaling factor to use for the enclosed object. ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/RelativeSize.java
Java
mit
1,669
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; import java.awt.Point; import java.awt.Rectangle; /** * A representation of a region, using a {@link Position} object and a * {@link Dimension} object. * * @author coobird * @since 0.3.4 * */ public final class Region { /*...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/Region.java
Java
mit
2,526
package net.coobird.thumbnailator.geometry; import java.awt.Point; import net.coobird.thumbnailator.filters.Caption; import net.coobird.thumbnailator.filters.ImageFilter; import net.coobird.thumbnailator.filters.Watermark; /** * An enum of predefined {@link Position}s. * <p> * Primary use of this enum ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/Positions.java
Java
mit
4,936
package net.coobird.thumbnailator.geometry; import java.awt.Dimension; /** * This interface is implemented by classes which calculate the size of an * object inside of an enclosing object. * * @author coobird * @since 0.3.4 * */ public interface Size { /** * Calculates the size of the object...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/geometry/Size.java
Java
mit
794
package net.coobird.thumbnailator; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import java.util.ArrayL...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/Thumbnails.java
Java
mit
79,332
/** * This package contains classes which provide the core functionalities of * Thumbnailator. */ package net.coobird.thumbnailator;
zyslovely-thumbnailator
src/net/coobird/thumbnailator/package-info.java
Java
mit
141
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; import net.coobird.thumbnailator.tasks.io.FileImageSink; import net.coobird.thumbnailator.tasks.io.FileImageSource; /** * A t...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/FileThumbnailTask.java
Java
mit
2,037
package net.coobird.thumbnailator.tasks; import java.io.IOException; /** * An exception used to indicate that the specified format could not be * used in an operation. * * @author coobird * */ public class UnsupportedFormatException extends IOException { /** * An ID used for serialization. ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/UnsupportedFormatException.java
Java
mit
1,374
/** * This package provides classes which perform image input and output * operations, which can be used to aid in creating and writing thumbnails * to and from external sources. */ package net.coobird.thumbnailator.tasks;
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/package-info.java
Java
mit
233
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import net.coobird.thumbnailator.ThumbnailParameter; import net.coobird.thumbnailator.tasks.io.InputStreamImageSource; import net.coobird.thumbnai...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/StreamThumbnailTask.java
Java
mit
2,267
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; import net.coobird.thumbnailator.tasks.io.ImageSink; import net.coobird.thumbnailator.tasks.io.ImageSource; /** * A {@link ThumbnailTask} which hol...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/SourceSinkThumbnailTask.java
Java
mit
2,854
package net.coobird.thumbnailator.tasks; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * This class is used by {@link ThumbnailTask} implementations which is used * when creating thumbnails from external sources and destinations. ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/ThumbnailTask.java
Java
mit
3,145
package net.coobird.thumbnailator.tasks.io; import net.coobird.thumbnailator.ThumbnailParameter; /** * An abstract class for {@link ImageSource}s. * * @author coobird * */ public abstract class AbstractImageSource<T> implements ImageSource<T> { /** * The image format of the input image. */ ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/AbstractImageSource.java
Java
mit
1,604
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; /** * An {@link ImageSink} which stores the resulting thumbnail to a * {@link BufferedImage}. * * @author coobird * */ public class BufferedImageSink extends AbstractImageSink<BufferedImage...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/BufferedImageSink.java
Java
mit
1,146
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * An abstract class for {@link ImageSink}s. * * @author coobird * */ public abstract class AbstractImageSink<T> implements ImageSin...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/AbstractImageSink.java
Java
mit
969
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; import java.util.Iterator; import java.util.List; import javax.imageio.IIOImage; import javax.imageio.ImageIO; import javax.imageio.ImageWriteParam; import javax.imageio...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/OutputStreamImageSink.java
Java
mit
4,864
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.ThumbnailParameter; /** * An interface to be implemented by classes which read or retrieve images * from which a thumbnail should be produced. * * @param <T> ...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/ImageSource.java
Java
mit
1,493
/** * This package provides classes which perform image input and output * operations in conjunction with the * {@link net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask} class. */ package net.coobird.thumbnailator.tasks.io;
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/package-info.java
Java
mit
241
package net.coobird.thumbnailator.tasks.io; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.IOException; import net.coobird.thumbnailator.geometry.Region; /** * An {@link ImageSource} which uses a {@link BufferedImage} as the source * image. * * @author coobird * *...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/BufferedImageSource.java
Java
mit
1,447
package net.coobird.thumbnailator.tasks.io; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Iterator; import javax.imageio.ImageIO; import javax.imageio.ImageReadParam; import javax.image...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/FileImageSource.java
Java
mit
3,526
package net.coobird.thumbnailator.tasks.io; import java.awt.image.BufferedImage; import java.io.IOException; import java.net.MalformedURLException; import java.net.Proxy; import java.net.URL; /** * An {@link ImageSource} which retrieves a source image from a URL. * * @author coobird * */ public cl...
zyslovely-thumbnailator
src/net/coobird/thumbnailator/tasks/io/URLImageSource.java
Java
mit
4,191