public class TokenizeKeysGenerator extends Object implements IRabaGenerator
Modifier and Type | Field and Description |
---|---|
static String |
charset
The encoding used to serialize the term (the value of each tuple).
|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
TokenizeKeysGenerator(String fileOrResource) |
Modifier and Type | Method and Description |
---|---|
byte[][] |
generateKeys(int size)
Generate B+Tree keys (no
null , no duplicates, data are
fully ordered based on unsigned byte[] comparison). |
byte[][] |
generateValues(int size)
Generate B+Tree values (may include
null s). |
boolean |
isKeysGenerator()
Yes.
|
boolean |
isValuesGenerator()
Yes.
|
Set<String> |
tokenize(String fileOrResource,
Reader r) |
protected static final org.apache.log4j.Logger log
public static final transient String charset
public TokenizeKeysGenerator(String fileOrResource)
public byte[][] generateKeys(int size)
IRabaGenerator
null
, no duplicates, data are
fully ordered based on unsigned byte[]
comparison).generateKeys
in interface IRabaGenerator
size
- The #of keys.public byte[][] generateValues(int size)
IRabaGenerator
null
s).generateValues
in interface IRabaGenerator
size
- The #of values.public boolean isKeysGenerator()
isKeysGenerator
in interface IRabaGenerator
public boolean isValuesGenerator()
isValuesGenerator
in interface IRabaGenerator
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.