Package org.terrier.structures
Class SimpleDocumentIndexEntry.Factory
- java.lang.Object
-
- org.terrier.structures.SimpleDocumentIndexEntry.Factory
-
- All Implemented Interfaces:
FixedSizeWriteableFactory<DocumentIndexEntry>
,WriteableFactory<DocumentIndexEntry>
- Enclosing class:
- SimpleDocumentIndexEntry
public static class SimpleDocumentIndexEntry.Factory extends java.lang.Object implements FixedSizeWriteableFactory<DocumentIndexEntry>
Factory for the creation of DocumentIndexEntry objects
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
Returns the size in bytes when T is written to disk by Writable interface methodsDocumentIndexEntry
newInstance()
Make a new instance of T
-
-
-
Method Detail
-
getSize
public int getSize()
Returns the size in bytes when T is written to disk by Writable interface methods- Specified by:
getSize
in interfaceFixedSizeWriteableFactory<DocumentIndexEntry>
-
newInstance
public DocumentIndexEntry newInstance()
Make a new instance of T- Specified by:
newInstance
in interfaceWriteableFactory<DocumentIndexEntry>
-
-