org.apache.lucene.index
Class MultiDocValues.EmptyFixedDocValues

java.lang.Object
  extended by org.apache.lucene.index.DocValues
      extended by org.apache.lucene.index.MultiDocValues.EmptyFixedDocValues
All Implemented Interfaces:
Closeable
Enclosing class:
MultiDocValues

public static class MultiDocValues.EmptyFixedDocValues
extends DocValues


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.index.DocValues
DocValues.SortedSource, DocValues.Source, DocValues.SourceCache, DocValues.Type
 
Field Summary
 
Fields inherited from class org.apache.lucene.index.DocValues
EMPTY_ARRAY
 
Constructor Summary
MultiDocValues.EmptyFixedDocValues(int maxDoc, DocValues.Type type, int valueSize)
           
 
Method Summary
 DocValues.Source getDirectSource()
          Returns a disk resident DocValues.Source instance.
 DocValues.Type getType()
          Returns the DocValues.Type of this DocValues instance
 int getValueSize()
          Returns the size per value in bytes or -1 iff size per value is variable.
 DocValues.Source load()
          Loads a new DocValues.Source instance for this DocValues field instance.
 
Methods inherited from class org.apache.lucene.index.DocValues
close, getDefaultSortedSource, getDefaultSource, getSource, setCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiDocValues.EmptyFixedDocValues

public MultiDocValues.EmptyFixedDocValues(int maxDoc,
                                          DocValues.Type type,
                                          int valueSize)
Method Detail

load

public DocValues.Source load()
                      throws IOException
Description copied from class: DocValues
Loads a new DocValues.Source instance for this DocValues field instance. Source instances returned from this method are not cached. It is the callers responsibility to maintain the instance and release its resources once the source is not needed anymore.

For managed DocValues.Source instances see DocValues.getSource().

Specified by:
load in class DocValues
Throws:
IOException
See Also:
DocValues.getSource(), DocValues.setCache(SourceCache)

getType

public DocValues.Type getType()
Description copied from class: DocValues
Returns the DocValues.Type of this DocValues instance

Specified by:
getType in class DocValues

getValueSize

public int getValueSize()
Description copied from class: DocValues
Returns the size per value in bytes or -1 iff size per value is variable.

Overrides:
getValueSize in class DocValues
Returns:
the size per value in bytes or -1 iff size per value is variable.

getDirectSource

public DocValues.Source getDirectSource()
                                 throws IOException
Description copied from class: DocValues
Returns a disk resident DocValues.Source instance. Direct Sources are not cached in the DocValues.SourceCache and should not be shared between threads.

Specified by:
getDirectSource in class DocValues
Throws:
IOException


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.