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
| <beans | |
| xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
| http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"> | |
| <!-- Allows us to use system properties as variables in this configuration file --> | |
| <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
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
| { | |
| "bucket" : 1429224600002, | |
| "sequence" : 1429224655000012527, | |
| "hashcode" : "ltLxymayA_rsi-hpRCk3hDjwuRI", | |
| "resource" : "http://independent.co.uk/news/uk/politics/generalelection/donald-macintyres-sketch-are-you-watching-david-this-is-for-you-10183377.html", | |
| "date_found" : "2015-04-16T22:50:55Z", | |
| "index_method" : "PERMALINK_TASK", | |
| "detection_method" : "SOURCE", | |
| "lang" : "en", | |
| "source_hashcode" : "LRHRdQh0Bom-tWE3oRgKMr4bdU8", |
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
| { | |
| "bucket" : 1428951900070, | |
| "sequence" : 1428951959000012001, | |
| "hashcode" : "pkD2mJAo3516JOLgLmXSJ4wtJj4", | |
| "resource" : "http://theglobeandmail.com/news/world/man-sought-after-nc-community-college-employee-killed/article23900584/comments", | |
| "date_found" : "2015-04-13T19:05:59Z", | |
| "index_method" : "PERMALINK_TASK", | |
| "detection_method" : "SOURCE", | |
| "lang" : "en", | |
| "source_hashcode" : "FpCN4NfCkLoMqKWRpCLcQ9zwiRs", |
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
| { | |
| "bucket" : 1428951900070, | |
| "sequence" : 1428951959000012001, | |
| "hashcode" : "pkD2mJAo3516JOLgLmXSJ4wtJj4", | |
| "resource" : "http://theglobeandmail.com/news/world/man-sought-after-nc-community-college-employee-killed/article23900584/comments", | |
| "date_found" : "2015-04-13T19:05:59Z", | |
| "index_method" : "PERMALINK_TASK", | |
| "detection_method" : "SOURCE", | |
| "lang" : "en", | |
| "source_hashcode" : "FpCN4NfCkLoMqKWRpCLcQ9zwiRs", |
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
| DirectByteBuffer(int cap) { // package-private | |
| super(-1, 0, cap, cap, false); | |
| Bits.reserveMemory( cap ); | |
| int ps = Bits.pageSize(); | |
| long base = 0; | |
| try { | |
| base = unsafe.allocateMemory(cap + ps); | |
| } catch (OutOfMemoryError x) { |
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
| > Gold standard direct byte buffer via Unsafe. (java.nio.DirectByteBuffer) 203 ms | |
| > regular direct ByteBuffer after changing order (LITTLE_ENDIAN) (java.nio.DirectByteBuffer) 792 ms | |
| > Netty Unpooled directBuffer (io.netty.buffer.UnpooledUnsafeDirectByteBuf) 1,070 ms | |
| > regular direct ByteBuffer after changing order (BIG_ENDIAN) (java.nio.DirectByteBuffer) 1,077 ms | |
| > Netty Unpooled directBuffer with set ByteOrder (BIG_ENDIAN) (io.netty.buffer.UnpooledUnsafeDirectByteBuf) 1,094 ms | |
| > regular direct ByteBuffer (java.nio.DirectByteBuffer) 1,106 ms | |
| > regular heap ByteBuffer (java.nio.HeapByteBuffer) 1,693 ms | |
| > regular heap ByteBuffer after changing order (BIG_ENDIAN) (java.nio.HeapByteBuffer) |
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
| package io.netty.buffer; | |
| import io.netty.util.internal.JavassistTypeParameterMatcherGenerator; | |
| import sun.misc.Unsafe; | |
| import sun.nio.ch.DirectBuffer; | |
| import java.lang.reflect.Field; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.util.ArrayList; |
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
| package io.netty.buffer; | |
| import sun.misc.Unsafe; | |
| import java.lang.reflect.Field; | |
| import java.nio.Buffer; | |
| import java.nio.ByteBuffer; | |
| /** | |
| * |
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
| package io.netty.buffer; | |
| import sun.misc.Unsafe; | |
| import java.lang.reflect.Field; | |
| import java.nio.Buffer; | |
| import java.nio.ByteBuffer; | |
| /** | |
| * |
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
| package io.netty.buffer; | |
| import io.netty.util.internal.JavassistTypeParameterMatcherGenerator; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.List; |