blog
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
| import java.util.Random; | |
| import sun.misc.Unsafe; | |
| import sun.nio.ch.DirectBuffer; | |
| import java.lang.reflect.Field; | |
| import java.nio.ByteBuffer; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; |
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
| public interface XyzInput { | |
| public Buffer getNextBuffer() throws IOException; | |
| } | |
| // non-reference counter | |
| public abstract class Buffer { | |
| private Unsafe unsafe; | |
| private long pointer; | |
| private Object base; |
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
| import java.util.Random; | |
| import sun.misc.Unsafe; | |
| import sun.nio.ch.DirectBuffer; | |
| import java.lang.reflect.Field; | |
| import java.nio.ByteBuffer; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; |
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
| import java.util.Random; | |
| import sun.misc.Unsafe; | |
| import sun.nio.ch.DirectBuffer; | |
| import java.lang.reflect.Field; | |
| import java.nio.ByteBuffer; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; |
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
| import os | |
| import httplib | |
| import time | |
| try: import simplejson as json | |
| except ImportError: import json | |
| VERSION = "0.1.0" | |
| class ClientSession(object): |
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
| import os | |
| import json | |
| import httplib | |
| import time | |
| VERSION = "0.1.0" | |
| class ClientSession: | |
| def __init__(self, server, user, source=None, catalog=None, schema=None, debug=False): | |
| self.server = server |
