Class SimpleTextBKDWriter

java.lang.Object
org.apache.lucene.codecs.simpletext.SimpleTextBKDWriter
All Implemented Interfaces:
Closeable, AutoCloseable

final class SimpleTextBKDWriter extends Object implements Closeable
Forked from BKDWriter and simplified/specialized for SimpleText's usage
  • Field Details

    • CODEC_NAME

      public static final String CODEC_NAME
      See Also:
    • VERSION_START

      public static final int VERSION_START
      See Also:
    • VERSION_COMPRESSED_DOC_IDS

      public static final int VERSION_COMPRESSED_DOC_IDS
      See Also:
    • VERSION_COMPRESSED_VALUES

      public static final int VERSION_COMPRESSED_VALUES
      See Also:
    • VERSION_IMPLICIT_SPLIT_DIM_1D

      public static final int VERSION_IMPLICIT_SPLIT_DIM_1D
      See Also:
    • VERSION_CURRENT

      public static final int VERSION_CURRENT
      See Also:
    • DEFAULT_MAX_MB_SORT_IN_HEAP

      public static final float DEFAULT_MAX_MB_SORT_IN_HEAP
      Default maximum heap to use, before spilling to (slower) disk
      See Also:
    • config

      protected final BKDConfig config
      How many dimensions we are storing at the leaf (data) nodes
    • scratch

      final BytesRefBuilder scratch
    • tempDir

      final TrackingDirectoryWrapper tempDir
    • tempFileNamePrefix

      final String tempFileNamePrefix
    • maxMBSortInHeap

      final double maxMBSortInHeap
    • scratchDiff

      final byte[] scratchDiff
    • scratch1

      final byte[] scratch1
    • scratch2

      final byte[] scratch2
    • scratchBytesRef1

      final BytesRef scratchBytesRef1
    • scratchBytesRef2

      final BytesRef scratchBytesRef2
    • commonPrefixLengths

      final int[] commonPrefixLengths
    • docsSeen

      protected final FixedBitSet docsSeen
    • pointWriter

      private PointWriter pointWriter
    • finished

      private boolean finished
    • tempInput

      private IndexOutput tempInput
    • maxPointsSortInHeap

      private final int maxPointsSortInHeap
    • minPackedValue

      protected final byte[] minPackedValue
      Minimum per-dim values, packed
    • maxPackedValue

      protected final byte[] maxPackedValue
      Maximum per-dim values, packed
    • pointCount

      protected long pointCount
    • totalPointCount

      private final long totalPointCount
      An upper bound on how many points the caller will add (includes deletions)
    • maxDoc

      private final int maxDoc
  • Constructor Details

  • Method Details