revert noisy changes

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3069@1519947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Han Jiang 2013-09-04 08:53:30 +00:00
parent 054a95e182
commit 12f60cb535
3 changed files with 9 additions and 9 deletions

View File

@ -44,7 +44,7 @@ final class ForUtil {
* Upper limit of the number of bytes that might be required to stored
* <code>BLOCK_SIZE</code> encoded values.
*/
public static final int MAX_ENCODED_SIZE = BLOCK_SIZE * 4;
static final int MAX_ENCODED_SIZE = BLOCK_SIZE * 4;
/**
* Upper limit of the number of values that might be decoded in a single call to
@ -52,7 +52,7 @@ final class ForUtil {
* <code>BLOCK_SIZE</code> are garbage, it is necessary to allocate value buffers
* whose size is >= MAX_DATA_SIZE to avoid {@link ArrayIndexOutOfBoundsException}s.
*/
public static final int MAX_DATA_SIZE;
static final int MAX_DATA_SIZE;
static {
int maxDataSize = 0;
for(int version=PackedInts.VERSION_START;version<=PackedInts.VERSION_CURRENT;version++) {
@ -96,7 +96,7 @@ final class ForUtil {
/**
* Create a new {@link ForUtil} instance and save state into <code>out</code>.
*/
public ForUtil(float acceptableOverheadRatio, DataOutput out) throws IOException {
ForUtil(float acceptableOverheadRatio, DataOutput out) throws IOException {
out.writeVInt(PackedInts.VERSION_CURRENT);
encodedSizes = new int[33];
encoders = new PackedInts.Encoder[33];
@ -122,7 +122,7 @@ final class ForUtil {
/**
* Restore a {@link ForUtil} from a {@link DataInput}.
*/
public ForUtil(DataInput in) throws IOException {
ForUtil(DataInput in) throws IOException {
int packedIntsVersion = in.readVInt();
PackedInts.checkVersion(packedIntsVersion);
encodedSizes = new int[33];
@ -154,7 +154,7 @@ final class ForUtil {
* @param out the destination output
* @throws IOException If there is a low-level I/O error
*/
public void writeBlock(int[] data, byte[] encoded, IndexOutput out) throws IOException {
void writeBlock(int[] data, byte[] encoded, IndexOutput out) throws IOException {
if (isAllEqual(data)) {
out.writeByte((byte) ALL_VALUES_EQUAL);
out.writeVInt(data[0]);
@ -183,7 +183,7 @@ final class ForUtil {
* @param decoded where to write decoded data
* @throws IOException If there is a low-level I/O error
*/
public void readBlock(IndexInput in, byte[] encoded, int[] decoded) throws IOException {
void readBlock(IndexInput in, byte[] encoded, int[] decoded) throws IOException {
final int numBits = in.readByte();
assert numBits <= 32 : numBits;
@ -209,7 +209,7 @@ final class ForUtil {
* @param in the input where to read data
* @throws IOException If there is a low-level I/O error
*/
public void skipBlock(IndexInput in) throws IOException {
void skipBlock(IndexInput in) throws IOException {
final int numBits = in.readByte();
if (numBits == ALL_VALUES_EQUAL) {
in.readVInt();

View File

@ -161,7 +161,7 @@ import org.apache.lucene.util.packed.PackedInts;
* <li>SkipFPDelta determines the position of this term's SkipData within the .doc
* file. In particular, it is the length of the TermFreq data.
* SkipDelta is only stored if DocFreq is not smaller than SkipMinimum
* (i.e. 8 in Lucene41PostingsFormat).</li>
* (i.e. 128 in Lucene41PostingsFormat).</li>
* <li>SingletonDocID is an optimization when a term only appears in one document. In this case, instead
* of writing a file pointer to the .doc file (DocFPDelta), and then a VIntBlock at that location, the
* single document ID is written to the term dictionary.</li>

View File

@ -46,7 +46,7 @@ import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
import org.apache.lucene.util._TestUtil;
@SuppressCodecs({"MockFixedIntBlock", "MockVariableIntBlock", "MockSep", "MockRandom", "TempFixedIntBlock", "TempVariableIntBlock", "TempSep", "TempRandom"})
@SuppressCodecs({"MockFixedIntBlock", "MockVariableIntBlock", "MockSep", "MockRandom"})
public class TestPostingsHighlighterRanking extends LuceneTestCase {
/**
* indexes a bunch of gibberish, and then highlights top(n).