public class PostgresDialect extends BaseSqlDialect
ERROR_MESSAGE| Constructor and Description |
|---|
PostgresDialect() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTableStatement, createTemporaryTableStatement, getPrimaryKeyStartValue, getPublicSchema, getRangeClause, hasContainerKeyToColumn, indexName, maybeWrapInQoutes, needsSchemaDropCascade, needsSemicolon, prepareDB, putJsonMetaObject, putJsonObject, supportsBooleanArrayValues, supportsByteArrayValues, supportsByteValues, supportsCascade, supportSchemas, supportsDoubleArrayValues, supportsFloatArrayValues, supportsFloatValues, supportsIntegerArrayValues, supportsLongArrayValues, supportsShortArrayValues, supportsStringArrayValues, supportsTransactionalSchemapublic String dialectName()
public String createSchemaStatement()
public boolean supportsBatchMode()
public String getForeignKeyTypeDefinition()
public String getColumnEscapeKey()
public String getPrimaryKeyType()
public String getAutoIncrementPrimaryKeyConstruct()
public void assertTableName(String tableName)
public String getArrayDriverType(PropertyType propertyType)
public String existIndexQuery(SchemaTable schemaTable, String prefix, String indexName)
public Map<SchemaTable,org.apache.commons.lang3.tuple.Pair<Long,Long>> flushVertexCache(SqlgGraph sqlgGraph, Map<SchemaTable,org.apache.commons.lang3.tuple.Pair<SortedSet<String>,Map<SqlgVertex,Map<String,Object>>>> vertexCache)
vertexCache - A rather complex object.
The map's key is the vertex being cached.
The Triple holds,
1) The in labels
2) The out labels
3) The properties as a map of key valuespublic 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)
public void flushVertexPropertyCache(SqlgGraph sqlgGraph, Map<SchemaTable,org.apache.commons.lang3.tuple.Pair<SortedSet<String>,Map<SqlgVertex,Map<String,Object>>>> schemaVertexPropertyCache)
public void flushEdgePropertyCache(SqlgGraph sqlgGraph, Map<SchemaTable,org.apache.commons.lang3.tuple.Pair<SortedSet<String>,Map<SqlgEdge,Map<String,Object>>>> edgePropertyCache)
public <T extends SqlgElement> void flushElementPropertyCache(SqlgGraph sqlgGraph, boolean forVertices, Map<SchemaTable,org.apache.commons.lang3.tuple.Pair<SortedSet<String>,Map<T,Map<String,Object>>>> schemaVertexPropertyCache)
public String constructCompleteCopyCommandTemporarySqlVertex(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String,Object> keyValueMap)
public String constructCompleteCopyCommandSqlVertex(SqlgGraph sqlgGraph, SqlgVertex vertex, Map<String,Object> keyValueMap)
public String constructCompleteCopyCommandSqlEdge(SqlgGraph sqlgGraph, SqlgEdge sqlgEdge, SqlgVertex outVertex, SqlgVertex inVertex, Map<String,Object> keyValueMap)
public String temporaryTableCopyCommandSqlVertex(SqlgGraph sqlgGraph, SchemaTable schemaTable, Map<String,Object> keyValueMap)
public void writeStreamingVertex(OutputStream out, Map<String,Object> keyValueMap)
public void writeStreamingEdge(OutputStream out, SqlgEdge sqlgEdge, SqlgVertex outVertex, SqlgVertex inVertex, Map<String,Object> keyValueMap)
public void flushRemovedVertices(SqlgGraph sqlgGraph, Map<SchemaTable,List<SqlgVertex>> removeVertexCache)
public void flushRemovedEdges(SqlgGraph sqlgGraph, Map<SchemaTable,List<SqlgEdge>> removeEdgeCache)
public String getBatchNull()
public String[] propertyTypeToSqlDefinition(PropertyType propertyType)
public PropertyType sqlTypeToPropertyType(SqlgGraph sqlgGraph, String schema, String table, String column, int sqlType, String typeName)
sqlType - typeName - public int propertyTypeToJavaSqlType(PropertyType propertyType)
public boolean needForeignKeyIndex()
public boolean supportsClientInfo()
public void validateSchemaName(String schema)
public void validateTableName(String table)
public void validateColumnName(String column)
validateColumnName in interface SqlDialectvalidateColumnName in class BaseSqlDialectpublic int getMinimumSchemaNameLength()
public int getMinimumTableNameLength()
public int getMinimumColumnNameLength()
public boolean supportsILike()
public boolean needsTimeZone()
public void setJson(PreparedStatement preparedStatement, int parameterStartIndex, com.fasterxml.jackson.databind.JsonNode json)
public void setPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point)
public void setLineString(PreparedStatement preparedStatement, int parameterStartIndex, Object lineString)
public void setPolygon(PreparedStatement preparedStatement, int parameterStartIndex, Object polygon)
public void setGeographyPoint(PreparedStatement preparedStatement, int parameterStartIndex, Object point)
public void handleOther(Map<String,Object> properties, String columnName, Object o, PropertyType propertyType)
public boolean supportsJson()
public OutputStream streamSql(SqlgGraph sqlgGraph, String sql)
public InputStream inputStreamSql(SqlgGraph sqlgGraph, String sql)
public <L,R> void bulkAddEdges(SqlgGraph sqlgGraph, SchemaTable in, SchemaTable out, String edgeLabel, org.apache.commons.lang3.tuple.Pair<String,String> idFields, Collection<org.apache.commons.lang3.tuple.Pair<L,R>> uids)
public void lockTable(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix)
public void alterSequenceCacheSize(SqlgGraph sqlgGraph, SchemaTable schemaTable, String sequence, int batchSize)
public long nextSequenceVal(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix)
public long currSequenceVal(SqlgGraph sqlgGraph, SchemaTable schemaTable, String prefix)
public String sequenceName(SqlgGraph sqlgGraph, SchemaTable outSchemaTable, String prefix)
public boolean supportsBulkWithinOut()
public boolean isPostgresql()
public <T> T getGis(SqlgGraph sqlgGraph)
public String afterCreateTemporaryTableStatement()
public Object convertArray(PropertyType propertyType, Array array) throws SQLException
SQLExceptionpublic void setArray(PreparedStatement statement, int index, PropertyType type, Object[] values) throws SQLException
SQLExceptionCopyright © 2016. All rights reserved.