Tabnine Logo
org.datacleaner.connection
Code IndexAdd Tabnine to your IDE (free)

How to use org.datacleaner.connection

Best Java code snippets using org.datacleaner.connection (Showing top 20 results out of 315)

origin: datacleaner/DataCleaner

@Override
public Table getPreviewTable(final Datastore datastore) {
  try (DatastoreConnection con = datastore.openConnection()) {
    return con.getSchemaNavigator().convertToTable(_schemaName, _tableName);
  }
}
origin: datacleaner/DataCleaner

@Override
public DatastoreConnection openConnection() {
  final UsageAwareDatastoreConnection<E> connection = getDatastoreConnection();
  if (connection instanceof UpdateableDatastoreConnection) {
    return new UpdateableDatastoreConnectionLease((UpdateableDatastoreConnection) connection);
  } else {
    return new DatastoreConnectionLease(connection);
  }
}
origin: datacleaner/DataCleaner

@Override
public PerformanceCharacteristics getPerformanceCharacteristics() {
  boolean queryOptimizationPreferred = true;
  boolean naturalRecordOrderConsistent = true;
  for (final Datastore datastore : _datastores) {
    final PerformanceCharacteristics performanceCharacteristics = datastore.getPerformanceCharacteristics();
    queryOptimizationPreferred =
        queryOptimizationPreferred && performanceCharacteristics.isQueryOptimizationPreferred();
    naturalRecordOrderConsistent =
        naturalRecordOrderConsistent && performanceCharacteristics.isNaturalRecordOrderConsistent();
  }
  return new PerformanceCharacteristicsImpl(queryOptimizationPreferred, naturalRecordOrderConsistent);
}
origin: datacleaner/DataCleaner

private Column[] getQueryConditionColumns() {
  if (queryConditionColumns == null) {
    if (isCarthesianProductMode()) {
      queryConditionColumns = new Column[0];
    } else {
      try (DatastoreConnection con = datastore.openConnection()) {
        queryConditionColumns =
            con.getSchemaNavigator().convertToColumns(schemaName, tableName, conditionColumns);
      }
    }
  }
  return queryConditionColumns;
}
origin: datacleaner/DataCleaner

public WriteDataResultImpl(final int writtenRowCount, final int updatesCount, final String datastoreName,
    final String schemaName, final String tableName) {
  _writtenRowCount = writtenRowCount;
  _updatesCount = updatesCount;
  _schemaName = schemaName;
  _tableName = tableName;
  _datastoreName = datastoreName;
  _datastoreFunc = catalog -> catalog.getDatastore(datastoreName);
  _errorRowCount = 0;
  _errorDatastore = null;
}
origin: datacleaner/DataCleaner

private String getDatastoreName() {
  if (_datastore != null) {
    return _datastore.getName();
  }
  return "<null>";
}
origin: datacleaner/DataCleaner

public Table[] convertToTables(final String[] tableNames) {
  final Table[] result = new Table[tableNames.length];
  for (int i = 0; i < result.length; i++) {
    result[i] = convertToTable(tableNames[i]);
  }
  return result;
}
origin: datacleaner/DataCleaner

public DatastoreConnectionImpl(final E dataContext, final Datastore datastore, final AutoCloseable... closeables) {
  super(datastore);
  _dataContext = dataContext;
  _schemaNavigator = new SchemaNavigator(dataContext);
  _closeables = closeables;
}
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

/**
 * @return the description
 */
public String getDescription() {
  return _datastore.getDescription();
}
origin: datacleaner/DataCleaner

@Override
public void close() {
  if (_datastoreConnection != null) {
    _datastoreConnection.close();
  }
}
origin: datacleaner/DataCleaner

public Column[] convertToColumns(final String[] columnNames) {
  final Column[] result = new Column[columnNames.length];
  for (int i = 0; i < result.length; i++) {
    result[i] = convertToColumn(columnNames[i]);
  }
  return result;
}
origin: datacleaner/DataCleaner

/**
 * Alternative constructor usable only for in-memory (ie. non-persistent)
 * datastores, because the datastore will not be able to create new
 * connections.
 *
 * @param name
 * @param dc
 */
public JdbcDatastore(final String name, final UpdateableDataContext dc) {
  this(name, null, null, null, null, null, false, null, null);
  setDataContextProvider(new UpdateableDatastoreConnectionImpl<>(dc, this));
}
origin: datacleaner/DataCleaner

public Schema[] convertToSchemas(final String[] schemaNames) {
  final Schema[] result = new Schema[schemaNames.length];
  for (int i = 0; i < result.length; i++) {
    result[i] = convertToSchema(schemaNames[i]);
  }
  return result;
}
origin: datacleaner/DataCleaner

@Override
public String toString() {
  return "Neo4jDatastore[name=" + getName() + ", hostname=" + _hostname + ", port=" + _port + ", _username="
      + _username + "]";
}
origin: datacleaner/DataCleaner

@Override
public UpdateableDatastoreConnection openConnection() {
  final DatastoreConnection connection = super.openConnection();
  return (UpdateableDatastoreConnection) connection;
}
origin: datacleaner/DataCleaner

public DataSourceDatastoreConnection(final UpdateableDataContext dataContext, final Datastore datastore) {
  super(datastore);
  _dataContext = dataContext;
  _schemaNavigator = new SchemaNavigator(_dataContext);
}
origin: datacleaner/DataCleaner

@Override
public UpdateableDatastoreConnection openConnection() {
  final DatastoreConnection connection = super.openConnection();
  return (UpdateableDatastoreConnection) connection;
}
origin: datacleaner/DataCleaner

@Override
public UpdateableDatastoreConnection openConnection() {
  final DatastoreConnection connection = super.openConnection();
  return (UpdateableDatastoreConnection) connection;
}
origin: datacleaner/DataCleaner

@Override
public UpdateableDatastoreConnection openConnection() {
  final DatastoreConnection connection = super.openConnection();
  return (UpdateableDatastoreConnection) connection;
}
origin: datacleaner/DataCleaner

@Override
public UpdateableDatastoreConnection openConnection() {
  final DatastoreConnection connection = super.openConnection();
  return (UpdateableDatastoreConnection) connection;
}
org.datacleaner.connection

Most used classes

  • Datastore
  • DatastoreCatalog
  • DatastoreConnection
  • SchemaNavigator
  • CsvDatastore
  • JdbcDatastore,
  • FixedWidthDatastore,
  • JsonDatastore,
  • PerformanceCharacteristicsImpl,
  • AccessDatastore,
  • CassandraDatastore,
  • CompositeDatastore,
  • CouchDbDatastore,
  • DbaseDatastore,
  • ElasticSearchDatastore,
  • FileDatastore,
  • KafkaDatastore$KeyValueType,
  • Neo4jDatastore,
  • OdbDatastore
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now