Package org.apache.lucene.store
Class BufferedChecksum
java.lang.Object
org.apache.lucene.store.BufferedChecksum
- All Implemented Interfaces:
Checksum
Wraps another
Checksum
with an internal buffer to speed up checksum calculations.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new BufferedChecksum withDEFAULT_BUFFERSIZE
BufferedChecksum
(Checksum in, int bufferSize) Create a new BufferedChecksum with the specified bufferSize -
Method Summary
-
Field Details
-
DEFAULT_BUFFERSIZE
public static final int DEFAULT_BUFFERSIZEDefault buffer size: 1024- See Also:
-
-
Constructor Details
-
BufferedChecksum
Create a new BufferedChecksum withDEFAULT_BUFFERSIZE
-
BufferedChecksum
Create a new BufferedChecksum with the specified bufferSize
-
-
Method Details
-
update
public void update(int b) -
update
public void update(byte[] b, int off, int len) -
getValue
public long getValue() -
reset
public void reset()
-