Search and Cache Engines development by Kevin Duraj since 1994

Category Archives: Java

Java Module Dependencies Settings with IntelliJ

Project Structure
Modules
Dependencies
Module SDK – new
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0

Java bitset class

This is a word-aligned compressed variant of the Java bitset class which implements the bit array data structure. It uses a 64-bit RLE-like compression scheme.
The goal of word-aligned compression is not to achieve the best compression, but rather to improve query processing time. Hence, we try to save CPU cycles, maybe at the expense of [...]

Java Current Directory

import java.io.File;

public void CurrentDir() throws Exception
{
File dir1 = new File (“.”);
File dir2 = new File (“..”);
try
[...]

Java Unit Test with Berkeley DB

/*———————————————————————————————————–*/
@Test
public void testPutBDB() throws Exception
{
System.out.println(“Creating database …”);
long t1 = System.nanoTime();

try
[...]