public class OraclePropertyGraphUtils extends OraclePropertyGraphUtilsBase
ERR_ARG_CANNOT_BE_NULL, ERR_CODE_NOT_IN_LIST, ERR_DOP_CONSTRAINT, ERR_E_AUTO_IDX_MUST_SOLR_OR_LUCENE, ERR_E_AUTO_IDX_NOT_EXIST, ERR_E_DS_MUSTBE_FILE_OR_IS, ERR_E_MAX_LINE_CONSTRAINT, ERR_EDGE_DIR_NOT_BOTH, ERR_EDGE_WORK_TBL_NOT_CLEAN, ERR_GRAPH_NAME_CANT_BENULL, ERR_HIT_EXCEPTION, ERR_HIT_INTERRUPT, ERR_HIT_IO, ERR_HIT_OPGE, ERR_HIT_PARSEE, ERR_ID_CANNOT_BE_NULL, ERR_IDX_KEY_CANNOT_BE_NULL, ERR_IDX_KEY_NOT_NULL, ERR_IDX_KEYS_NOT_NULL, ERR_IN_DS_EDGE_CANTBE_NULL, ERR_IN_DS_VERT_CANTBE_NULL, ERR_IN_E_FLAT_DOESNT_EXIST, ERR_IN_V_FLAT_DOESNT_EXIST, ERR_INPUT_LIST_NOT_NULL, ERR_INPUT_NOT_NULL, ERR_INVALID_CHANGE_ACTION, ERR_INVALID_NUM_FIELDS, ERR_INVALID_NUM_NOARG, ERR_INVALID_NUMBER, ERR_INVALID_VAL, ERR_KEY_CANNOT_BE_ID, ERR_KEY_CANNOT_BE_NULL, ERR_KEY_CANNOT_BE_NULL_EMPTY, ERR_KEY_NOT_SET_TO, ERR_NO_ELEM_TO_BE_CONSUMED, ERR_NO_OP_SUPPORTED, ERR_NOT_IMPLEMENTED_YET, ERR_NOT_ORACLE_V_E, ERR_NUM_PART_CONSTRAINT, ERR_OFFSET_CONSTRAINT, ERR_OFFSET_E_MUST_BE_POS, ERR_OFFSET_V_MUST_BE_POS, ERR_OPT_FLAG_EDGE_INVALID, ERR_OPT_FLAG_VERT_INVALID, ERR_ORA_TEXT_INVALID_KEY, ERR_ORA_TEXT_ONLY_AUTO, ERR_OUTPUT_LIST_NOT_NULL, ERR_PG_ALREADY_EXISTS, ERR_PG_NOT_EMPTY, ERR_PG_NOT_NULL, ERR_SIZE_MUST_BE_POS, ERR_TIMEOUT_TAB_CREATION, ERR_TXT_IDX_NOT_FOUND, ERR_TYPE_ID_NOT_RECO, ERR_UNSUPPORTED_VAL_TYP, ERR_USER_REQ_OP_CANCEL, ERR_V_AUTO_IDX_MUST_SOLR_OR_LUCENE, ERR_V_AUTO_IDX_NOT_EXIST, ERR_V_DS_MUSTBE_FILE_OR_IS, ERR_V_MAX_LINE_CONSTRAINT, ERR_VALUE_CANNOT_BE_NULL, INFO_EMP_K_NO_P_VAL, INFO_NUL_K_NO_P_VAL, TYPE_DT_BOOL, TYPE_DT_BYTE, TYPE_DT_CHAR, TYPE_DT_DATE, TYPE_DT_DOUBLE, TYPE_DT_EMPTY, TYPE_DT_FLOAT, TYPE_DT_INTEGER, TYPE_DT_JSON, TYPE_DT_LONG, TYPE_DT_SERI, TYPE_DT_SHORT, TYPE_DT_SPATIAL, TYPE_DT_STRING, TYPE_DT_URI
Constructor and Description |
---|
OraclePropertyGraphUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
dropPropertyGraph(oracle.kv.KVStoreConfig kvStoreConfig, String szGraphName)
Drops the specified property graph (including its associated tables).
|
static void |
dropPropertyGraph(oracle.kv.KVStoreConfig kvStoreConfig, String szGraphName, String username, String password)
Drops the specified property graph (including its associated tables).
|
static void |
dropPropertyGraph(OraclePropertyGraph opg)
Drops the specified property graph (including its associated tables).
|
static void |
exportEdgeFlatFile(OraclePropertyGraph pg, OutputStream osEdge, int dop, boolean append, boolean closeStream)
This function exports the edges of a given property graph into OPE flat file
|
static void |
exportFlatFiles(OraclePropertyGraph pg, OutputStream osVertex, OutputStream osEdge, boolean append, int dop)
This function exports a given property graph into two flat files: one for vertices and the other for edges.
|
static void |
exportFlatFiles(OraclePropertyGraph pg, OutputStream osVertex, OutputStream osEdge, int dop, boolean append, boolean closeStreams)
This function exports a given property graph into two flat files: one for vertices and the other for edges.
|
static void |
exportFlatFiles(OraclePropertyGraph pg, String vertexFileName, String edgeFileName, boolean append)
This function exports a given property graph into two flat files: one for vertices and the other for edges.
|
static void |
exportFlatFiles(OraclePropertyGraph pg, String vertexFileName, String edgeFileName, int dop, boolean append)
This function exports a given property graph into two flat files: one for vertices and the other for edges.
|
static void |
exportVertexFlatFile(OraclePropertyGraph pg, OutputStream osVertex, int dop, boolean append, boolean closeStream)
This function exports the vertices of a given property graph into OPV flat file
|
static List<String> |
getGraphNames(oracle.kv.KVStoreConfig kvsc)
List all the names of the property graphs stored in the given database
|
static void |
quietlyCloseConnections(oracle.kv.KVStoreConfig[] connections)
Quietly closes an array
KVStoreConfig objects storing all the configurations used to connect to an Oracle NoSQL Database |
static void |
quietlyCloseKVStore(OraclePropertyGraph opg)
Quietly close the
KVStore object handling a connection to an Oracle NoSQL Database associated to the given property graph |
compareFiles, compareValueObjects, convertCSV2OPE, convertCSV2OPE, convertCSV2OPE, convertCSV2OPE, convertCSV2OPE, convertCSV2OPE, convertCSV2OPV, convertCSV2OPV, convertCSV2OPV, convertCSV2OPV, convertRDBMSTable2OPE, convertRDBMSTable2OPE, convertRDBMSTable2OPV, escape, exportEdges, exportFlatFiles, exportFlatFiles, exportFlatFiles, exportGML, exportGML, exportGraphML, exportGraphML, exportGraphSON, exportGraphSON, exportVertices, getDatatypeAsPropertyType, handleGZipInputStream, importGML, importGML, importGraphML, importGraphML, importGraphSON, importGraphSON, listify, outputEdgeRecord, outputVertexRecord, prepareConfigEdgePropertiesFromOPVFile, prepareConfigVertexPropertiesFromOPVFile, quietlyClose, quietlyClose, quietlyClose, quietlyCloseResultSet, quietlyCloseResultSetAndStmt, quietlyCloseResultSetAndStmt, quietlyCloseStmt, quietlyShutdown, setExceptionHandlers, size, splitAndLoad, unescape, validateSources, writeValue
public static void dropPropertyGraph(oracle.kv.KVStoreConfig kvStoreConfig, String szGraphName) throws IOException, Exception
kvStoreConfig
- configuration for Oracle NoSQL DatabaseszGraphName
- name of the property graph.IOException
Exception
public static void dropPropertyGraph(oracle.kv.KVStoreConfig kvStoreConfig, String szGraphName, String username, String password) throws IOException, Exception
kvStoreConfig
- configuration for Oracle NoSQL DatabaseszGraphName
- name of the property graph.username
- name of the userpassword
- password of the userIOException
Exception
public static void dropPropertyGraph(OraclePropertyGraph opg) throws IOException, Exception
opg
- an instance of OraclePropertyGraphIOException
Exception
public static void exportEdgeFlatFile(OraclePropertyGraph pg, OutputStream osEdge, int dop, boolean append, boolean closeStream) throws IOException, FileNotFoundException, InterruptedException
pg
- the property graph that will be exported into flat filesosEdge
- an OutputStream
object for the edge flat filedop
- the degree of parallelism used when writing the data into the flat file. This will use multiple threads to optimize writing performance.append
- if false, overwrite the existing flat file removing all existing data.closeStream
- whether to close the OutputStream or notIOException
FileNotFoundException
InterruptedException
public static void exportFlatFiles(OraclePropertyGraph pg, OutputStream osVertex, OutputStream osEdge, boolean append, int dop) throws IOException, FileNotFoundException, InterruptedException
pg
- the property graph that will be exported into flat filesosVertex
- an OutputStream
object for the vertex flat fileosEdge
- an OutputStream
object for the edge flat filedop
- the degree of parallelism used when writing the data into the flat files. This will use multiple threads to optimize writing performance.append
- if false, overwrite the existing flat files removing all existing data.IOException
FileNotFoundException
InterruptedException
public static void exportFlatFiles(OraclePropertyGraph pg, OutputStream osVertex, OutputStream osEdge, int dop, boolean append, boolean closeStreams) throws IOException, FileNotFoundException, InterruptedException
pg
- the property graph that will be exported into flat filesosVertex
- an OutputStream
object for the vertex flat fileosEdge
- an OutputStream
object for the edge flat filedop
- the degree of parallelism used when writing the data into the flat files. This will use multiple threads to optimize writing performance.append
- if false, overwrite the existing flat files removing all existing data.closeStreams
- whether to close the OutputStreams or notIOException
FileNotFoundException
InterruptedException
public static final void exportFlatFiles(OraclePropertyGraph pg, String vertexFileName, String edgeFileName, boolean append) throws IOException, FileNotFoundException, InterruptedException
pg
- the property graph that will be exported into flat filesvertexFileName
- the name of the vertex flat file e.g. graph.opvedgeFileName
- the name of the edge flat file e.g. graph.opeappend
- if false, overwrite the existing flat files removing all existing data.InterruptedException
IOException
FileNotFoundException
public static final void exportFlatFiles(OraclePropertyGraph pg, String vertexFileName, String edgeFileName, int dop, boolean append) throws IOException, FileNotFoundException, InterruptedException
pg
- the property graph that will be exported into flat filesvertexFileName
- the name of the vertex flat file e.g. graph.opvedgeFileName
- the name of the edge flat file e.g. graph.opedop
- the degree of parallelism used when writing the data into the flat files. This will use multiple threads to optimize writing performance.append
- if false, overwrite the existing flat files removing all existing data.InterruptedException
IOException
FileNotFoundException
public static void exportVertexFlatFile(OraclePropertyGraph pg, OutputStream osVertex, int dop, boolean append, boolean closeStream) throws IOException, FileNotFoundException, InterruptedException
pg
- the property graph that will be exported into flat filesosVertex
- an OutputStream
object for the vertex flat filedop
- the degree of parallelism used when writing the data into the flat file. This will use multiple threads to optimize writing performance.append
- if false, overwrite the existing flat file removing all existing data.closeStream
- whether to close the OutputStream or notIOException
FileNotFoundException
InterruptedException
public static List<String> getGraphNames(oracle.kv.KVStoreConfig kvsc) throws OraclePropertyGraphException
kvsc
- a KVStoreConfig
objectOraclePropertyGraphException
public static void quietlyCloseConnections(oracle.kv.KVStoreConfig[] connections)
KVStoreConfig
objects storing all the configurations used to connect to an Oracle NoSQL Databaseconnections
- an array of KVStoreConfig
objects.public static void quietlyCloseKVStore(OraclePropertyGraph opg)
KVStore
object handling a connection to an Oracle NoSQL Database associated to the given property graphopg
- an OraclePropertyGraph
object.Copyright © 2017 Oracle and/or its afflilates. All Rights Reserved.