org.infinispan.lucene
Class FileMetadata

java.lang.Object
  extended by 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

Constructor Summary
FileMetadata()
           
 
Method Summary
 boolean equals(Object o)
           
 int getBufferSize()
           
 long getLastModified()
           
 int getNumberOfChunks()
           
 long getSize()
           
 int hashCode()
           
 void setBufferSize(int bufferSize)
           
 void setLastModified(long lastModified)
           
 void setSize(long size)
           
 String toString()
           
 void touch()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileMetadata

public FileMetadata()
Method Detail

touch

public void touch()

getLastModified

public long getLastModified()

setLastModified

public void setLastModified(long lastModified)

getSize

public long getSize()

setSize

public void setSize(long size)

setBufferSize

public void setBufferSize(int bufferSize)

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 © 2011 JBoss, a division of Red Hat. All Rights Reserved.