segment

Oracle导出表不导出数据默认为空表的解决方法

匿名 (未验证) 提交于 2019-12-03 00:09:02
原因: Oracle11g默认对空表不分配segment, 1.查出空白 select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0; 2执行语句 来分配segment 3使用exp语句导出就可以了 来源:51CTO 作者: kevin_cat 链接:https://blog.csdn.net/kevin_cat/article/details/101062205

Druid 入门知识学习(一)

匿名 (未验证) 提交于 2019-12-02 23:52:01
1.什么是Druid? Druid是一个高效的数据查询系统,主要解决的是对于大量的基于时序的数据进行聚合查询。数据可以实时摄入,进入到Druid后立即可查,同时数据是几乎是不可变。通常是基于时序的事实事件,事实发生后进入Druid,外部系统就可以对该事实进行查询。 shared-nothing架构与lambda架构 Druid设计三个原则: 1.快速查询(Fast Query) : 部分数据聚合(Partial Aggregate) + 内存华(In-Memory) + 索引(Index) 2.水平拓展能力(Horizontal Scalability):分布式数据(Distributed data)+并行化查询(Parallelizable Query) 3.实时分析(Realtime Analytics):Immutable Past , Append-Only Future 2.Druid的技术特点 数据吞吐量大 支持流式数据摄入和实时 查询灵活且快速 3.Druid基本概念: Druid在数据摄入之前,首先要定义一个数据源(DataSource,类似于数据库中表的概念) Druid是一个分布式数据分析平台,也是一个时序数据库 数据集合(时间列,维度列,指标列) 数据结构: 基于DataSource与Segment的数据结构,DataSource相当于关系型数据库中的表。

Java线程本地存储ThreadLocal

匿名 (未验证) 提交于 2019-12-02 21:52:03
前言 无同步 Thread-Specific Storage 没有共享资源 ThreadLocal ThreadLocal 思维导图 线程安全 示意图 1. 用法 ThreadLocal ThreadLocal android.os.Looper.java ThreadLocal ThradlLocal UML类图 // /frameworks/base/core/java/android/os/Looper.java public class Looper { // ... // sThreadLocal.get() will return null unless you've called prepare(). static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>(); private static void prepare(boolean quitAllowed) { if (sThreadLocal.get() != null) { throw new RuntimeException("Only one Looper may be created per thread"); } // 设置线程局部变量的值 sThreadLocal.set(new Looper(quitAllowed

What are segments in Lucene?

时间秒杀一切 提交于 2019-12-02 20:09:17
What are segments in Lucene ? What are the benefits of segments? Pascal Dimassimo The Lucene index is split into smaller chunks called segments. Each segment is its own index. Lucene searches all of them in sequence. A new segment is created when a new writer is opened and when a writer commits or is closed. The advantages of using this system are that you never have to modify the files of a segment once it is created. When you are adding new documents in your index, they are added to the next segment. Previous segments are never modified. Deleting a document is done by simply indicating in a

kafka集群

旧城冷巷雨未停 提交于 2019-12-02 17:57:24
1、 kafka介绍 Kafka是由Apache软件基金会开发的一个开源流处理平台,由Scala和Java编写。Kafka是一种高吞吐量的分布式发布订阅消息系统,它可以处理消费者规模的网站中的所有动作流数据。 这种动作(网页浏览,搜索和其他用户的行动)是在现代网络上的许多社会功能的一个关键因素。 这些数据通常是由于吞吐量的要求而通过处理日志和日志聚合来解决。 对于像Hadoop一样的日志数据和离线分析系统,但又要求实时处理的限制,这是一个可行的解决方案。Kafka的目的是通过Hadoop的并行加载机制来统一线上和离线的消息处理,也是为了通过集群来提供实时的消息。 2、 kafka的特性 Kafka 是一种高吞吐量的分布式发布订阅消息系统,有如下特性: 通过磁盘数据结构提供消息的持久化,这种结构对于即使数以TB的消息存储也能够保持长时间的稳定性能。 持久性:使用文件性存储,日志文件存储消息,需要写入硬盘,采用达到一定阈值才写入硬盘,从而较少磁盘I/O,如果突然宕机数据会丢失 高吞吐量 :即使是非常普通的硬件Kafka也可以支持每秒数百万的消息。 支持通过Kafka服务器和消费机集群来分区消息。 支持Hadoop并行数据加载。 3、 kafka的体系架构 如上图所示,一个典型的Kafka体系架构包括若干Producer(可以是服务器日志,业务数据,页面前端产生的page view等等)

Storing Business Logic in Database

狂风中的少年 提交于 2019-12-02 14:18:46
We want to write some business logic rules that work on top of certain data to build reports. Not sure which is the best to store them in the database MySQL. It can have a chain of the rules and then a statement for the result as shown above. Somnath Muluk For building reports you can convert business logic in any programming language. And use database data for generating reports. Against of business logic stored in database I place a high value on the power of expression, and I don't find the SQL space to be all that expressive. Use the best tools you have on hand for the most appropriate

Why am I getting an unexpected `0xcc` byte when loading nearby code bytes? Is it because of segment register %es?

早过忘川 提交于 2019-12-02 10:36:02
I got some inconsistent result of instruction. I don't know why this happens, so I suspect %es register is doing something weird, but I'm not sure. Look at below code snippet. 08048400 <main>: 8048400: bf 10 84 04 08 mov $HERE,%edi 8048405: 26 8b 07 mov %es:(%edi),%eax # <----- Result 1 8048408: bf 00 84 04 08 mov $main,%edi 804840d: 26 8b 07 mov %es:(%edi),%eax # <----- Result 2 08048410 <HERE>: 8048410: 11 11 adc %edx,(%ecx) 8048412: 11 11 adc %edx,(%ecx) Result 1: %eax : 0x11111111 Seeing this result, I guessed that mov %es:(%edi),%eax to be something like mov (%edi),%eax . Because

[Codeforces] Too Many Segments

谁说我不能喝 提交于 2019-12-02 07:34:12
Smaller input size: https://codeforces.com/contest/1249/problem/D1 Big input size: https://codeforces.com/contest/1249/problem/D2 Given n segments on a X coordinate line. Segments can intersect, lie inside each other or even coincide. The i-th segment is [Li, Ri], Li <= Ri and it covers all integers that is in [Li, Ri]. An integer is called bad if it is covered by strictly more than k segments. Remove the minimum number of segments so that there are no bad integers at all. Output the minimum number of segments you need to remove and which segments you need to remove. Greedy solution: If an

(六)ConcurrentHashMap源码解读

℡╲_俬逩灬. 提交于 2019-12-02 05:25:00
concurrentHashMap特点: 线程安全,多线程同步写入 (1)基本属性: 默认容量:16 默认加载因子:0.75 默认并发水平:16 数组最大长度:Integer.MAX_VALUE - 8 (2)构造方法(5个) public ConcurrentHashMap(int initialCapacity,float loadFactor, int concurrencyLevel) public ConcurrentHashMap(int initialCapacity, float loadFactor) { this(initialCapacity, loadFactor, DEFAULT_CONCURRENCY_LEVEL); } public ConcurrentHashMap(int initialCapacity) { this(initialCapacity, DEFAULT_LOAD_FACTOR, DEFAULT_CONCURRENCY_LEVEL); } public ConcurrentHashMap() { this(DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_CONCURRENCY_LEVEL); } public ConcurrentHashMap(Map<? extends