Class GridLuceneFile
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.opt.GridLuceneFile
-
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
public class GridLuceneFile extends Object implements org.apache.lucene.util.Accountable
Lucene file.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes file and deallocates memory.Collection<org.apache.lucene.util.Accountable>getChildResources()GridLuceneDirectorygetDirectory()longgetLength()For non-stream access from thread that might be concurrent with writingStringgetName()longramBytesUsed()protected voidsetLength(long length)Sets length.
-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- filename
-
getLength
public long getLength()
For non-stream access from thread that might be concurrent with writing- Returns:
- Length.
-
setLength
protected void setLength(long length)
Sets length.- Parameters:
length- Length.
-
delete
public void delete()
Deletes file and deallocates memory.
-
getDirectory
public GridLuceneDirectory getDirectory()
- Returns:
- Directory.
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getChildResources
public Collection<org.apache.lucene.util.Accountable> getChildResources()
- Specified by:
getChildResourcesin interfaceorg.apache.lucene.util.Accountable
-
-