org.infinispan.lucene
Class FileMetadata

java.lang.Object
  extended by org.infinispan.lucene.FileMetadata
All Implemented Interfaces:
Serializable

public 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)
           
 long getLastModified()
           
 long getSize()
           
 int hashCode()
           
 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)

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

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.