java.lang.Object
org.umlg.sqlg.sql.dialect.BaseSqlDialect
org.umlg.sqlg.dialect.impl.PostgresDialect
- All Implemented Interfaces:
SqlBulkDialect
,SqlDialect
,SqlSchemaChangeDialect
Date: 2014/07/16
Time: 1:42 PM
-
Field Summary
Fields inherited from class org.umlg.sqlg.sql.dialect.BaseSqlDialect
logger
Fields inherited from interface org.umlg.sqlg.sql.dialect.SqlDialect
INDEX_POSTFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalterForeignKeyToDeferrable
(String schema, String table, String foreignKeyName) void
alterSequenceCacheSize
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize) void
assertTableName
(String tableName) <L,
R> void bulkAddEdges
(SqlgGraph sqlgGraph, SchemaTable out, SchemaTable in, String edgeLabel, org.apache.commons.lang3.tuple.Pair<String, String> idFields, Collection<org.apache.commons.lang3.tuple.Pair<L, R>> uids, Map<String, PropertyDefinition> edgeColumns, Map<String, Object> edgePropertyMap) checkConstraintName
(SqlgGraph sqlgGraph, String schema, String table, String column, String constraint) constructCompleteCopyCommandSqlEdge
(SqlgGraph sqlgGraph, SqlgEdge sqlgEdge, VertexLabel outVertexLabel, VertexLabel inVertexLabel, SqlgVertex outVertex, SqlgVertex inVertex, Map<String, Object> keyValueMap) constructCompleteCopyCommandSqlVertex
(SqlgGraph sqlgGraph, String schema, String table, Set<String> keys) constructCompleteCopyCommandSqlVertex
(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String, Object> keyValueMap) constructCompleteCopyCommandTemporarySqlVertex
(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String, Object> keyValueMap) convertArray
(PropertyType propertyType, Array array) createSchemaStatement
(String schemaName) long
currSequenceVal
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) drop
(SqlgGraph sqlgGraph, String leafElementsToDelete, String edgesToDelete, LinkedList<SchemaTableTree> distinctQueryStack) drop
(EdgeLabel edgeLabel, Collection<RecordId.ID> ids) drop
(VertexLabel vertexLabel, Collection<RecordId.ID> ids) dropWithForeignKey
(boolean out, EdgeLabel edgeLabel, VertexLabel vertexLabel, Collection<RecordId.ID> ids, boolean mutatingCallbacks) existIndexQuery
(SchemaTable schemaTable, String prefix, String indexName) extractIndices
(Connection conn, String catalog, String schema) void
flushEdgeCache
(SqlgGraph sqlgGraph, Map<MetaEdge, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgEdge, org.apache.commons.lang3.tuple.Triple<SqlgVertex, SqlgVertex, Map<String, Object>>>>> edgeCache) void
flushEdgePropertyCache
(SqlgGraph sqlgGraph, Map<SchemaTable, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgEdge, Map<String, Object>>>> edgePropertyCache) void
flushVertexCache
(SqlgGraph sqlgGraph, Map<SchemaTable, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgVertex, Map<String, Object>>>> vertexCache) flushes the cache via the copy command.void
flushVertexPropertyCache
(SqlgGraph sqlgGraph, Map<SchemaTable, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgVertex, Map<String, Object>>>> schemaVertexPropertyCache) getArrayContainsQueryText
(String column) getArrayDriverType
(PropertyType propertyType) getArrayOverlapsQueryText
(String column) getBlocked
(int pid, Connection connection) int
getConnectionBackendPid
(Connection connection) getFullTextQueryText
(FullText fullText, String column) <X> X
int
int
int
int
getPartitions
(Connection connection) int
getShardCount
(SqlgGraph sqlgGraph, AbstractLabel label) void
void
handleOther
(Map<String, Object> properties, String columnName, Object o, PropertyType propertyType) boolean
boolean
isSystemIndex
(String indexName) boolean
isTimestampz
(String typeName) void
void
lockTable
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) boolean
boolean
long
nextSequenceVal
(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix) int
notifyChange
(SqlgGraph sqlgGraph, LocalDateTime timestamp, com.fasterxml.jackson.databind.JsonNode jsonNode) void
prepareDB
(Connection conn) int[]
propertyTypeToJavaSqlType
(PropertyType propertyType) String[]
propertyTypeToSqlDefinition
(PropertyType propertyType) void
registerListener
(SqlgGraph sqlgGraph) sequenceName
(SqlgGraph sqlgGraph, SchemaTable outSchemaTable, String prefix) void
setArray
(PreparedStatement statement, int index, PropertyType type, Object[] values) void
setGeographyPoint
(PreparedStatement preparedStatement, int parameterStartIndex, Object point) void
setJson
(PreparedStatement preparedStatement, int parameterStartIndex, com.fasterxml.jackson.databind.JsonNode json) void
setLineString
(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString) void
setLquery
(PreparedStatement preparedStatement, int parameterStartIndex, String path) void
setLqueryArray
(PreparedStatement preparedStatement, int parameterStartIndex, Array paths) void
setLtree
(PreparedStatement preparedStatement, int parameterStartIndex, String path) void
setLtreeArray
(PreparedStatement preparedStatement, int parameterStartIndex, Array paths) void
setPoint
(PreparedStatement preparedStatement, int parameterStartIndex, Object point) void
setPolygon
(PreparedStatement preparedStatement, int parameterStartIndex, Object polygon) sqlArrayTypeNameToPropertyType
(String typeName, SqlgGraph sqlgGraph, String schema, String table, String columnName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) int
sqlTruncate
(SqlgGraph sqlgGraph, SchemaTable schemaTable) sqlTypeToPropertyType
(SqlgGraph sqlgGraph, String schema, String table, String column, int sqlType, String typeName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) This is only used for upgrading from pre sqlg_schema sqlg to a sqlg_schemaboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
supportsType
(PropertyType propertyType) temporaryTableCopyCommandSqlVertex
(SqlgGraph sqlgGraph, SchemaTable schemaTable, Set<String> keys) void
void
validateColumnName
(String column) void
validateProperty
(Object key, Object value) void
validateSchemaName
(String schema) void
validateTableName
(String table) valueToValuesString
(PropertyType propertyType, Object value) void
writeStreamingEdge
(Writer writer, SqlgEdge sqlgEdge, VertexLabel outVertexLabel, VertexLabel inVertexLabel, SqlgVertex outVertex, SqlgVertex inVertex, Map<String, Object> keyValueMap, EdgeLabel edgeLabel) void
writeStreamingVertex
(Writer writer, Map<String, Object> keyValueMap, VertexLabel vertexLabel) void
writeTemporaryStreamingVertex
(Writer writer, Map<String, Object> keyValueMap) Methods inherited from class org.umlg.sqlg.sql.dialect.BaseSqlDialect
escapeQuotes, flushRemovedEdges, flushRemovedVertices, getEdgeTables, getIndexInfo, getPrimaryKeys, getSchemaNames, getTableColumns, getVertexTables
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.umlg.sqlg.sql.dialect.SqlBulkDialect
flushRemovedEdges, flushRemovedVertices
Methods inherited from interface org.umlg.sqlg.sql.dialect.SqlDialect
addColumnStatement, addDbVersionToGraph, addNotNullConstraint, canUserCreateSchemas, createTableStatement, createTemporaryTableStatement, dropIndex, dropSchemaStatement, getDefaultFetchSize, getEdgeTables, getIndexInfo, getPrimaryKeys, getPrimaryKeyStartValue, getPublicSchema, getRangeClause, getSchemaNames, getSkipClause, getTableColumns, getVertexTables, hasContainerKeyToColumn, indexName, indexName, isH2, isHsqldb, isIndexPartOfCreateTable, isMariaDb, isMssqlServer, isMysql, maybeWrapInQoutes, needsSchemaCreationPrecommit, needsSchemaDropCascade, needsSemicolon, needsTemporaryTablePrefix, needsTemporaryTableSchema, putJsonMetaObject, putJsonObject, renameColumn, renameTable, requiresIndexLengthLimit, requiresIndexName, schemaExists, sqlgSqlgSchemaCreationScript, sqlInsertEmptyValues, sqlToTurnOffReferentialConstraintCheck, sqlToTurnOnReferentialConstraintCheck, supportsBigDecimal, supportsBigDecimalArrayValues, supportsBooleanArrayValues, supportsByteArrayValues, supportsByteValues, supportsCascade, supportsDoubleArrayValues, supportsDurationArrayValues, supportsFloatArrayValues, supportsFloatValues, supportsFullValueExpression, supportsIfExists, supportsIntegerArrayValues, supportsLocalDateArrayValues, supportsLocalDateTimeArrayValues, supportsLocalTimeArrayValues, supportsLongArrayValues, supportsPeriodArrayValues, supportsSchemaIfNotExists, supportsSchemas, supportsShortArrayValues, supportsStringArrayValues, supportsTemporaryTableOnCommitDrop, supportsTransactionalSchema, supportsUUID, supportsValuesExpression, supportsZonedDateTimeArrayValues, temporaryTablePrefix, toByteArray, toRDBSStringLiteral, toRDBSStringLiteral, toSelectString, uniqueIndexConsidersNullValuesEqual
-
Constructor Details
-
PostgresDialect
public PostgresDialect()
-
-
Method Details
-
supportsDistribution
public boolean supportsDistribution()- Specified by:
supportsDistribution
in interfaceSqlDialect
-
dialectName
- Specified by:
dialectName
in interfaceSqlDialect
-
createSchemaStatement
- Specified by:
createSchemaStatement
in interfaceSqlDialect
-
supportsBatchMode
public boolean supportsBatchMode()- Specified by:
supportsBatchMode
in interfaceSqlDialect
-
supportsStreamingBatchMode
public boolean supportsStreamingBatchMode()- Specified by:
supportsStreamingBatchMode
in interfaceSqlDialect
-
getInternalSchemas
- Specified by:
getInternalSchemas
in interfaceSqlDialect
-
getSpacialRefTable
- Specified by:
getSpacialRefTable
in interfaceSqlDialect
-
getGisSchemas
- Specified by:
getGisSchemas
in interfaceSqlDialect
-
getForeignKeyTypeDefinition
- Specified by:
getForeignKeyTypeDefinition
in interfaceSqlDialect
-
getColumnEscapeKey
- Specified by:
getColumnEscapeKey
in interfaceSqlDialect
-
getPrimaryKeyType
- Specified by:
getPrimaryKeyType
in interfaceSqlDialect
-
getAutoIncrementPrimaryKeyConstruct
- Specified by:
getAutoIncrementPrimaryKeyConstruct
in interfaceSqlDialect
-
getAutoIncrement
- Specified by:
getAutoIncrement
in interfaceSqlDialect
-
assertTableName
- Specified by:
assertTableName
in interfaceSqlDialect
-
getArrayDriverType
- Specified by:
getArrayDriverType
in interfaceSqlDialect
-
existIndexQuery
- Specified by:
existIndexQuery
in interfaceSqlDialect
-
flushVertexCache
public void flushVertexCache(SqlgGraph sqlgGraph, Map<SchemaTable, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgVertex, Map<String, Object>>>> vertexCache) flushes the cache via the copy command.- Specified by:
flushVertexCache
in interfaceSqlBulkDialect
- Overrides:
flushVertexCache
in classBaseSqlDialect
- Parameters:
vertexCache
- A rather complex object. The map's key is the vertex being cached. The Triple holds,- The in labels
- The out labels
- the properties as a map of key values
-
flushEdgeCache
public void flushEdgeCache(SqlgGraph sqlgGraph, Map<MetaEdge, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgEdge, org.apache.commons.lang3.tuple.Triple<SqlgVertex, SqlgVertex, Map<String, Object>>>>> edgeCache) - Specified by:
flushEdgeCache
in interfaceSqlBulkDialect
- Overrides:
flushEdgeCache
in classBaseSqlDialect
-
flushVertexPropertyCache
public void flushVertexPropertyCache(SqlgGraph sqlgGraph, Map<SchemaTable, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgVertex, Map<String, Object>>>> schemaVertexPropertyCache) - Specified by:
flushVertexPropertyCache
in interfaceSqlBulkDialect
- Overrides:
flushVertexPropertyCache
in classBaseSqlDialect
-
flushEdgePropertyCache
public void flushEdgePropertyCache(SqlgGraph sqlgGraph, Map<SchemaTable, org.apache.commons.lang3.tuple.Pair<SortedSet<String>, Map<SqlgEdge, Map<String, Object>>>> edgePropertyCache) - Specified by:
flushEdgePropertyCache
in interfaceSqlBulkDialect
- Overrides:
flushEdgePropertyCache
in classBaseSqlDialect
-
constructCompleteCopyCommandTemporarySqlVertex
public String constructCompleteCopyCommandTemporarySqlVertex(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String, Object> keyValueMap) - Specified by:
constructCompleteCopyCommandTemporarySqlVertex
in interfaceSqlBulkDialect
-
constructCompleteCopyCommandSqlVertex
public String constructCompleteCopyCommandSqlVertex(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String, Object> keyValueMap) - Specified by:
constructCompleteCopyCommandSqlVertex
in interfaceSqlBulkDialect
-
constructCompleteCopyCommandSqlVertex
public String constructCompleteCopyCommandSqlVertex(SqlgGraph sqlgGraph, String schema, String table, Set<String> keys) - Specified by:
constructCompleteCopyCommandSqlVertex
in interfaceSqlBulkDialect
-
constructCompleteCopyCommandSqlEdge
public String constructCompleteCopyCommandSqlEdge(SqlgGraph sqlgGraph, SqlgEdge sqlgEdge, VertexLabel outVertexLabel, VertexLabel inVertexLabel, SqlgVertex outVertex, SqlgVertex inVertex, Map<String, Object> keyValueMap) - Specified by:
constructCompleteCopyCommandSqlEdge
in interfaceSqlBulkDialect
-
temporaryTableCopyCommandSqlVertex
public String temporaryTableCopyCommandSqlVertex(SqlgGraph sqlgGraph, SchemaTable schemaTable, Set<String> keys) - Specified by:
temporaryTableCopyCommandSqlVertex
in interfaceSqlBulkDialect
-
writeStreamingVertex
public void writeStreamingVertex(Writer writer, Map<String, Object> keyValueMap, VertexLabel vertexLabel) - Specified by:
writeStreamingVertex
in interfaceSqlBulkDialect
-
writeTemporaryStreamingVertex
- Specified by:
writeTemporaryStreamingVertex
in interfaceSqlBulkDialect
-
writeStreamingEdge
public void writeStreamingEdge(Writer writer, SqlgEdge sqlgEdge, VertexLabel outVertexLabel, VertexLabel inVertexLabel, SqlgVertex outVertex, SqlgVertex inVertex, Map<String, Object> keyValueMap, EdgeLabel edgeLabel) - Specified by:
writeStreamingEdge
in interfaceSqlBulkDialect
-
getBatchNull
- Specified by:
getBatchNull
in interfaceSqlBulkDialect
-
propertyTypeToSqlDefinition
- Specified by:
propertyTypeToSqlDefinition
in interfaceSqlDialect
-
sqlTypeToPropertyType
public PropertyType sqlTypeToPropertyType(SqlgGraph sqlgGraph, String schema, String table, String column, int sqlType, String typeName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) This is only used for upgrading from pre sqlg_schema sqlg to a sqlg_schema- Specified by:
sqlTypeToPropertyType
in interfaceSqlDialect
-
sqlArrayTypeNameToPropertyType
public PropertyType sqlArrayTypeNameToPropertyType(String typeName, SqlgGraph sqlgGraph, String schema, String table, String columnName, ListIterator<org.apache.commons.lang3.tuple.Triple<String, Integer, String>> metaDataIter) - Specified by:
sqlArrayTypeNameToPropertyType
in interfaceSqlDialect
-
propertyTypeToJavaSqlType
- Specified by:
propertyTypeToJavaSqlType
in interfaceSqlDialect
-
validateProperty
- Specified by:
validateProperty
in interfaceSqlDialect
-
needForeignKeyIndex
public boolean needForeignKeyIndex()- Specified by:
needForeignKeyIndex
in interfaceSqlDialect
-
supportsClientInfo
public boolean supportsClientInfo()- Specified by:
supportsClientInfo
in interfaceSqlDialect
-
validateSchemaName
- Specified by:
validateSchemaName
in interfaceSqlDialect
-
validateTableName
- Specified by:
validateTableName
in interfaceSqlDialect
-
validateColumnName
- Specified by:
validateColumnName
in interfaceSqlDialect
- Overrides:
validateColumnName
in classBaseSqlDialect
-
getMaximumSchemaNameLength
public int getMaximumSchemaNameLength()- Specified by:
getMaximumSchemaNameLength
in interfaceSqlDialect
-
getMaximumTableNameLength
public int getMaximumTableNameLength()- Specified by:
getMaximumTableNameLength
in interfaceSqlDialect
-
getMaximumColumnNameLength
public int getMaximumColumnNameLength()- Specified by:
getMaximumColumnNameLength
in interfaceSqlDialect
-
getMaximumIndexNameLength
public int getMaximumIndexNameLength()- Specified by:
getMaximumIndexNameLength
in interfaceSqlDialect
-
supportsILike
public boolean supportsILike()- Specified by:
supportsILike
in interfaceSqlDialect
-
needsTimeZone
public boolean needsTimeZone()- Specified by:
needsTimeZone
in interfaceSqlDialect
-
setJson
public void setJson(PreparedStatement preparedStatement, int parameterStartIndex, com.fasterxml.jackson.databind.JsonNode json) - Specified by:
setJson
in interfaceSqlDialect
- Overrides:
setJson
in classBaseSqlDialect
-
setLtree
- Specified by:
setLtree
in interfaceSqlDialect
-
setLquery
- Specified by:
setLquery
in interfaceSqlDialect
-
setLtreeArray
public void setLtreeArray(PreparedStatement preparedStatement, int parameterStartIndex, Array paths) - Specified by:
setLtreeArray
in interfaceSqlDialect
-
setLqueryArray
public void setLqueryArray(PreparedStatement preparedStatement, int parameterStartIndex, Array paths) - Specified by:
setLqueryArray
in interfaceSqlDialect
-
setPoint
- Specified by:
setPoint
in interfaceSqlDialect
-
setLineString
public void setLineString(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString) - Specified by:
setLineString
in interfaceSqlDialect
-
setPolygon
public void setPolygon(PreparedStatement preparedStatement, int parameterStartIndex, Object polygon) - Specified by:
setPolygon
in interfaceSqlDialect
-
setGeographyPoint
public void setGeographyPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point) - Specified by:
setGeographyPoint
in interfaceSqlDialect
-
handleOther
public void handleOther(Map<String, Object> properties, String columnName, Object o, PropertyType propertyType) - Specified by:
handleOther
in interfaceSqlDialect
- Overrides:
handleOther
in classBaseSqlDialect
-
supportsJsonType
public boolean supportsJsonType()- Specified by:
supportsJsonType
in interfaceSqlDialect
-
supportsJsonArrayValues
public boolean supportsJsonArrayValues()- Specified by:
supportsJsonArrayValues
in interfaceSqlDialect
-
streamSql
- Specified by:
streamSql
in interfaceSqlBulkDialect
-
bulkAddEdges
public <L,R> void bulkAddEdges(SqlgGraph sqlgGraph, SchemaTable out, SchemaTable in, String edgeLabel, org.apache.commons.lang3.tuple.Pair<String, String> idFields, Collection<org.apache.commons.lang3.tuple.Pair<L, R>> uids, Map<String, PropertyDefinition> edgeColumns, Map<String, Object> edgePropertyMap) - Specified by:
bulkAddEdges
in interfaceSqlBulkDialect
-
lockTable
- Specified by:
lockTable
in interfaceSqlDialect
-
alterSequenceCacheSize
public void alterSequenceCacheSize(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize) - Specified by:
alterSequenceCacheSize
in interfaceSqlDialect
-
nextSequenceVal
- Specified by:
nextSequenceVal
in interfaceSqlDialect
-
currSequenceVal
- Specified by:
currSequenceVal
in interfaceSqlDialect
-
sequenceName
- Specified by:
sequenceName
in interfaceSqlDialect
-
supportsBulkWithinOut
public boolean supportsBulkWithinOut()- Specified by:
supportsBulkWithinOut
in interfaceSqlDialect
-
isPostgresql
public boolean isPostgresql()- Specified by:
isPostgresql
in interfaceSqlDialect
-
getGis
- Specified by:
getGis
in interfaceSqlDialect
-
afterCreateTemporaryTableStatement
- Specified by:
afterCreateTemporaryTableStatement
in interfaceSqlDialect
-
columnsToIgnore
- Specified by:
columnsToIgnore
in interfaceSqlDialect
-
sqlgTopologyCreationScripts
- Specified by:
sqlgTopologyCreationScripts
in interfaceSqlDialect
-
sqlgCreateTopologyGraph
- Specified by:
sqlgCreateTopologyGraph
in interfaceSqlDialect
-
sqlgAddIndexEdgeSequenceColumn
- Specified by:
sqlgAddIndexEdgeSequenceColumn
in interfaceSqlDialect
-
addHashPartitionColumns
- Specified by:
addHashPartitionColumns
in interfaceSqlDialect
-
addPartitionSchemaAbstractLabelColumns
- Specified by:
addPartitionSchemaAbstractLabelColumns
in interfaceSqlDialect
-
addPartitionTables
- Specified by:
addPartitionTables
in interfaceSqlDialect
-
convertArray
- Specified by:
convertArray
in interfaceSqlDialect
- Throws:
SQLException
-
setArray
public void setArray(PreparedStatement statement, int index, PropertyType type, Object[] values) throws SQLException - Specified by:
setArray
in interfaceSqlDialect
- Throws:
SQLException
-
prepareDB
- Specified by:
prepareDB
in interfaceSqlDialect
-
getConnectionBackendPid
- Specified by:
getConnectionBackendPid
in interfaceSqlDialect
-
getBlocked
public org.apache.commons.lang3.tuple.Pair<Boolean,String> getBlocked(int pid, Connection connection) - Specified by:
getBlocked
in interfaceSqlDialect
-
lock
- Specified by:
lock
in interfaceSqlSchemaChangeDialect
-
registerListener
- Specified by:
registerListener
in interfaceSqlSchemaChangeDialect
-
unregisterListener
public void unregisterListener()- Specified by:
unregisterListener
in interfaceSqlSchemaChangeDialect
-
notifyChange
public int notifyChange(SqlgGraph sqlgGraph, LocalDateTime timestamp, com.fasterxml.jackson.databind.JsonNode jsonNode) - Specified by:
notifyChange
in interfaceSqlSchemaChangeDialect
-
getFullTextQueryText
- Specified by:
getFullTextQueryText
in interfaceSqlDialect
-
getArrayContainsQueryText
- Specified by:
getArrayContainsQueryText
in interfaceSqlDialect
-
getArrayOverlapsQueryText
- Specified by:
getArrayOverlapsQueryText
in interfaceSqlDialect
-
extractIndices
public Map<String,Set<IndexRef>> extractIndices(Connection conn, String catalog, String schema) throws SQLException - Specified by:
extractIndices
in interfaceSqlDialect
- Throws:
SQLException
-
isSystemIndex
- Specified by:
isSystemIndex
in interfaceSqlDialect
-
valueToValuesString
- Specified by:
valueToValuesString
in interfaceSqlDialect
-
supportsType
- Specified by:
supportsType
in interfaceSqlDialect
-
sqlInParameterLimit
public int sqlInParameterLimit()- Specified by:
sqlInParameterLimit
in interfaceSqlDialect
- Overrides:
sqlInParameterLimit
in classBaseSqlDialect
-
drop
public List<SqlgSqlExecutor.DropQuery> drop(SqlgGraph sqlgGraph, String leafElementsToDelete, String edgesToDelete, LinkedList<SchemaTableTree> distinctQueryStack) - Specified by:
drop
in interfaceSqlDialect
-
drop
- Specified by:
drop
in interfaceSqlDialect
-
drop
- Specified by:
drop
in interfaceSqlDialect
-
dropWithForeignKey
public String dropWithForeignKey(boolean out, EdgeLabel edgeLabel, VertexLabel vertexLabel, Collection<RecordId.ID> ids, boolean mutatingCallbacks) - Specified by:
dropWithForeignKey
in interfaceSqlDialect
-
supportsDeferrableForeignKey
public boolean supportsDeferrableForeignKey()- Specified by:
supportsDeferrableForeignKey
in interfaceSqlDialect
-
sqlToGetAllForeignKeys
- Specified by:
sqlToGetAllForeignKeys
in interfaceSqlDialect
-
alterForeignKeyToDeferrable
- Specified by:
alterForeignKeyToDeferrable
in interfaceSqlDialect
-
sqlTruncate
- Specified by:
sqlTruncate
in interfaceSqlDialect
-
supportsTruncateMultipleTablesTogether
public boolean supportsTruncateMultipleTablesTogether()- Specified by:
supportsTruncateMultipleTablesTogether
in interfaceSqlDialect
-
supportsPartitioning
public boolean supportsPartitioning()- Specified by:
supportsPartitioning
in interfaceSqlDialect
-
getPartitions
- Specified by:
getPartitions
in interfaceSqlDialect
-
supportsSharding
public boolean supportsSharding()- Specified by:
supportsSharding
in interfaceSqlDialect
-
getShardCount
- Specified by:
getShardCount
in interfaceSqlDialect
-
grantReadOnlyUserPrivilegesToSqlgSchemas
- Specified by:
grantReadOnlyUserPrivilegesToSqlgSchemas
in interfaceSqlDialect
-
isTimestampz
- Specified by:
isTimestampz
in interfaceSqlDialect
-
addPropertyDefinitions
- Specified by:
addPropertyDefinitions
in interfaceSqlDialect
-
addOutEdgeDefinitions
- Specified by:
addOutEdgeDefinitions
in interfaceSqlDialect
-
addInEdgeDefinitions
- Specified by:
addInEdgeDefinitions
in interfaceSqlDialect
-
checkConstraintName
public String checkConstraintName(SqlgGraph sqlgGraph, String schema, String table, String column, String constraint) - Specified by:
checkConstraintName
in interfaceSqlDialect
-