org.infinispan.lucene
Class FileMetadata
java.lang.Object
org.infinispan.lucene.FileMetadata
- All Implemented Interfaces:
- Serializable
public final class FileMetadata
- extends Object
- implements Serializable
Header for Lucene files. Store only basic info about file. File data is divided into byte[]
chunks and stored under ChunkCacheKey
- Since:
- 4.0
- Author:
- Lukasz Moren
- See Also:
FileCacheKey
,
Serialized Form
FileMetadata
public FileMetadata(int bufferSize)
touch
public void touch()
getLastModified
public long getLastModified()
setLastModified
public void setLastModified(long lastModified)
getSize
public long getSize()
setSize
public void setSize(long size)
getBufferSize
public int getBufferSize()
getNumberOfChunks
public int getNumberOfChunks()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.