Xindice API
version 1.1

org.apache.xindice.core.meta.inline
Class NullReader

java.lang.Object
  |
  +--org.apache.xindice.core.meta.inline.NullReader
All Implemented Interfaces:
InlineMetaReader

public class NullReader
extends Object
implements InlineMetaReader

Read metadata of length zero. Handy for comparing performance of the metadata-free database with a database using the metadata machinery but containing no metadata.

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $

Inner Class Summary
static class NullReader.NullMap
          A VERY simple and efficient InlineMetaMap implementation that holds precisely nothing.
 
Constructor Summary
NullReader()
           
 
Method Summary
 int getVersion()
          The second byte of the header contains the version.
 InlineMetaMap read(Value data)
          When a header is read, it generates a Map containing the attributes carried by the header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullReader

public NullReader()
Method Detail

getVersion

public int getVersion()
Description copied from interface: InlineMetaReader
The second byte of the header contains the version. The reader which is called to read the header is determined by the version.
Specified by:
getVersion in interface InlineMetaReader
See Also:
InlineMetaReader.getVersion()

read

public InlineMetaMap read(Value data)
                   throws InlineMetaException
Description copied from interface: InlineMetaReader
When a header is read, it generates a Map containing the attributes carried by the header.
Specified by:
read in interface InlineMetaReader
See Also:
InlineMetaReader.read(Value)

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.