Package org.terrier.matching
Class FatUtils
- java.lang.Object
-
- org.terrier.matching.FatUtils
-
public class FatUtils extends java.lang.Object
Various utilities for the dealing withFatResultSet
s.- Since:
- 4.0
- Author:
- Craig Macdonald
-
-
Constructor Summary
Constructors Constructor Description FatUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
dump(FatResultSet frs)
static WritablePosting
firstPosting(WritablePosting[] writablePostings)
protected static WritablePosting
firstPosting(WritablePosting[][] postings)
protected static WritablePosting
firstPosting(WritablePosting[][] postings, int termIndex)
static java.lang.String
getInfo(FatResultSet frs)
static void
main(java.lang.String[] args)
static Index
makeIndex(FatResultSet frs)
static java.util.Iterator<java.util.Map.Entry<java.lang.String,FatResultSet>>
readFatResultSet(java.lang.String filename)
static void
readFields(FatResultSet frs, java.io.DataInput in)
protected static void
readFieldsV2(FatResultSet frs, java.io.DataInput in)
protected static void
readFieldsV3(FatResultSet frs, java.io.DataInput in)
protected static void
readFieldsV4(FatResultSet frs, java.io.DataInput in)
protected static void
readFieldsV5(FatResultSet frs, java.io.DataInput in, boolean v6)
protected static void
readFieldsV6(FatResultSet frs, java.io.DataInput in, boolean v6)
static FatResultSet
recreate(FatResultSet frs)
static void
write(FatResultSet frs, java.io.DataOutput out)
static void
writeV3(FatResultSet frs, java.io.DataOutput out)
static void
writeV5(FatResultSet frs, java.io.DataOutput out)
-
-
-
Method Detail
-
recreate
public static FatResultSet recreate(FatResultSet frs) throws java.io.IOException
- Throws:
java.io.IOException
-
readFields
public static void readFields(FatResultSet frs, java.io.DataInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldsV2
protected static void readFieldsV2(FatResultSet frs, java.io.DataInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldsV3
protected static void readFieldsV3(FatResultSet frs, java.io.DataInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldsV4
protected static void readFieldsV4(FatResultSet frs, java.io.DataInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldsV5
protected static void readFieldsV5(FatResultSet frs, java.io.DataInput in, boolean v6) throws java.io.IOException
- Throws:
java.io.IOException
-
readFieldsV6
protected static void readFieldsV6(FatResultSet frs, java.io.DataInput in, boolean v6) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public static void write(FatResultSet frs, java.io.DataOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeV3
public static void writeV3(FatResultSet frs, java.io.DataOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
writeV5
public static void writeV5(FatResultSet frs, java.io.DataOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
makeIndex
public static Index makeIndex(FatResultSet frs)
-
firstPosting
protected static WritablePosting firstPosting(WritablePosting[][] postings)
-
firstPosting
protected static WritablePosting firstPosting(WritablePosting[][] postings, int termIndex)
-
firstPosting
public static WritablePosting firstPosting(WritablePosting[] writablePostings)
-
getInfo
public static java.lang.String getInfo(FatResultSet frs)
-
dump
public static void dump(FatResultSet frs)
-
readFatResultSet
public static java.util.Iterator<java.util.Map.Entry<java.lang.String,FatResultSet>> readFatResultSet(java.lang.String filename) throws java.io.IOException
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
- Throws:
java.io.IOException
-
-