Xindice API
version 1.2m1

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

java.lang.Object
  extended byorg.apache.xindice.core.meta.inline.NullWriter
All Implemented Interfaces:
InlineMetaWriter

public class NullWriter
extends Object
implements InlineMetaWriter

Write 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: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $

Constructor Summary
NullWriter()
           
 
Method Summary
 byte[] getMetadata(InlineMetaMap map)
          Create the metadata.
 int getVersion()
          The header version created by the implementing writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullWriter

public NullWriter()
Method Detail

getVersion

public int getVersion()
Description copied from interface: InlineMetaWriter
The header version created by the implementing writer.

Specified by:
getVersion in interface InlineMetaWriter
See Also:
InlineMetaWriter.getVersion()

getMetadata

public byte[] getMetadata(InlineMetaMap map)
                   throws InlineMetaException
Description copied from interface: InlineMetaWriter
Create the metadata. The contents are drawn from the map.

Specified by:
getMetadata in interface InlineMetaWriter
Parameters:
map - from which the metadata is drawn
Throws:
InlineMetaException - if the map is not usable by this writer, or is missing required entries.
See Also:
InlineMetaWriter.getMetadata(InlineMetaMap)

Xindice API
version 1.2m1

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