org.apache.lucene.codecs.lucene40.values
Class Ints

java.lang.Object
  extended by org.apache.lucene.codecs.lucene40.values.Ints

public final class Ints
extends Object

Stores ints packed and fixed with fixed-bit precision.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
protected static String CODEC_NAME
          Codec name, written in the header.
protected static int VERSION_CURRENT
          Current version.
protected static int VERSION_START
          Initial version.
 
Method Summary
static DocValues getValues(Directory dir, String id, int numDocs, DocValues.Type type, IOContext context)
          Creates and returns a DocValues to read previously written int values.
static DocValuesConsumer getWriter(Directory dir, String id, Counter bytesUsed, DocValues.Type type, IOContext context)
          Creates and returns a DocValuesConsumer to write int values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODEC_NAME

protected static final String CODEC_NAME
Codec name, written in the header.

See Also:
Constant Field Values

VERSION_START

protected static final int VERSION_START
Initial version.

See Also:
Constant Field Values

VERSION_CURRENT

protected static final int VERSION_CURRENT
Current version.

See Also:
Constant Field Values
Method Detail

getWriter

public static DocValuesConsumer getWriter(Directory dir,
                                          String id,
                                          Counter bytesUsed,
                                          DocValues.Type type,
                                          IOContext context)
Creates and returns a DocValuesConsumer to write int values.


getValues

public static DocValues getValues(Directory dir,
                                  String id,
                                  int numDocs,
                                  DocValues.Type type,
                                  IOContext context)
                           throws IOException
Creates and returns a DocValues to read previously written int values.

Throws:
IOException


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