de.aitools.aq.invertedindex.usage
Class UsingSingleBuffer

java.lang.Object
  extended by de.aitools.aq.invertedindex.usage.UsingSingleBuffer

public class UsingSingleBuffer
extends java.lang.Object

A helper class to demonstrate the usage of Indexer with SingleBuffer as value type for raw data indexing.

The class SingleBuffer is a derivative of Value and wraps a ByteBuffer instance internally. It can be used to index arbitrary data, that can be written to such a buffer. Therefore any object, that can be serialized to a simple byte[] is supported as well.

This tutorial shows how to index object generated by Google Protobuf, a general-purpose serialization library for plain old java objects (POJOs)

Version:
$Id: UsingSingleBuffer.java,v 1.5 2011/04/18 19:57:36 trenkman Exp $
Author:
martin.trenkmann@uni-weimar.de
See Also:
SingleBuffer, SingleString

Constructor Summary
UsingSingleBuffer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsingSingleBuffer

public UsingSingleBuffer()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException