public class RDFInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
compression_prop |
static String |
size_prop |
static String |
triples_prop |
| Modifier and Type | Method and Description |
|---|---|
static long |
countLines(String filename,
RDFParserCallback parser,
RDFNotation notation)
Finds the length of file in bytes and counts the number of lines and fills
the given specs with them using "fillHDTSpecification(long, int, HDTOptions)" method.
|
static void |
fillHDTSpecifications(long sizeInBytes,
long numLines,
HDTOptions specs)
Fills the given HDTSpecification object with the given information about the (RDF)
file.
|
static float |
getCompression(HDTOptions specs)
Gets the "rdf.expectedCompression" property is it is set.
|
static Long |
getSizeInBytes(HDTOptions specs)
Gets the "rdf.sizeInBytes" property and returns it if set, otherwise returns null.
|
static long |
getTriples(HDTOptions specs)
Gets the "rdf.triples" property and returns it if set, otherwise returns null.
|
static void |
setCompression(float compression,
HDTOptions specs)
Sets the "rdf.expectedCompression" property, overwrites if existing
|
static void |
setSizeInBytes(long sizeInBytes,
HDTOptions specs)
Sets the "rdf.sizeInBytes" property, overwrites if existing
|
static void |
setTriples(long numLines,
HDTOptions specs)
Sets the "rdf.triples" property, overwrites if existing
|
static boolean |
triplesSet(HDTOptions specs)
Checks if "rdf.triples" property was set by the user
|
public static final String size_prop
public static final String triples_prop
public static final String compression_prop
public static void fillHDTSpecifications(long sizeInBytes,
long numLines,
HDTOptions specs)
specs - HDTSpecification object to be filledpublic static void setSizeInBytes(long sizeInBytes,
HDTOptions specs)
public static void setTriples(long numLines,
HDTOptions specs)
public static void setCompression(float compression,
HDTOptions specs)
public static Long getSizeInBytes(HDTOptions specs)
public static long getTriples(HDTOptions specs)
public static boolean triplesSet(HDTOptions specs)
public static float getCompression(HDTOptions specs)
public static long countLines(String filename, RDFParserCallback parser, RDFNotation notation) throws FileNotFoundException, IOException, ParserException
Copyright © 2018 DataWeb Research. All rights reserved.