congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Store.getProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
getProperties
method
in
uk.gov.gchq.gaffer.store.Store

Best Java code snippets using uk.gov.gchq.gaffer.store.Store.getProperties (Showing top 14 results out of 315)

origin: uk.gov.gchq.gaffer/graph

/**
 * @return the StoreProperties for this Graph.
 */
public StoreProperties getStoreProperties() {
  return store.getProperties();
}
origin: uk.gov.gchq.gaffer/federated-store

/**
 * Get this Store's {@link uk.gov.gchq.gaffer.federatedstore.FederatedStoreProperties}.
 *
 * @return the instance of {@link uk.gov.gchq.gaffer.federatedstore.FederatedStoreProperties},
 * this may contain details such as database connection details.
 */
@Override
public FederatedStoreProperties getProperties() {
  return (FederatedStoreProperties) super.getProperties();
}
origin: uk.gov.gchq.gaffer/parquet-store

@SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "The properties should always be ParquetStoreProperties")
@Override
public ParquetStoreProperties getProperties() {
  return (ParquetStoreProperties) super.getProperties();
}
origin: uk.gov.gchq.gaffer/map-store

@SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "The properties should always be MapStoreProperties")
@Override
public MapStoreProperties getProperties() {
  return (MapStoreProperties) super.getProperties();
}
origin: uk.gov.gchq.gaffer/accumulo-store

/**
 * Gets all {@link AccumuloProperties} related to the store.
 *
 * @return {@link AccumuloProperties}.
 */
@SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "The properties should always be AccumuloProperties")
@Override
public AccumuloProperties getProperties() {
  return (AccumuloProperties) super.getProperties();
}
origin: uk.gov.gchq.gaffer/proxy-store

@SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "The properties should always be ProxyProperties")
@Override
public ProxyProperties getProperties() {
  return (ProxyProperties) super.getProperties();
}
origin: uk.gov.gchq.gaffer/graph

@Override
public StoreProperties resolveStorePropertiesForGraph(final Store store, final StoreProperties properties, final String parentStorePropertiesId, final Pair<Schema, StoreProperties> existingGraphPair) {
  StoreProperties resultProps = super.resolveStorePropertiesForGraph(store, properties, parentStorePropertiesId, existingGraphPair);
  if (null == resultProps) {
    // If no properties have been provided then default to using the store properties
    resultProps = store.getProperties();
  }
  return resultProps;
}
origin: uk.gov.gchq.gaffer/graph

@Override
protected StoreProperties resolveStorePropertiesForGraph(final Store store, final StoreProperties properties, final String parentStorePropertiesId, final Pair<Schema, StoreProperties> existingGraphPair) {
  StoreProperties resultProps = super.resolveStorePropertiesForGraph(store, properties, parentStorePropertiesId, existingGraphPair);
  if (null == resultProps) {
    // If no properties have been provided then default to using the store properties
    resultProps = store.getProperties();
  }
  return resultProps;
}
origin: uk.gov.gchq.gaffer/parquet-store

@Override
public Void doOperation(final AddElements operation,
            final Context context,
            final Store store) throws OperationException {
  final SparkSession spark = SparkContextUtil.getSparkSession(context, store.getProperties());
  final ParquetStore parquetStore = (ParquetStore) store;
  SparkParquetUtils.configureSparkForAddElements(spark, parquetStore.getProperties());
  addElements(operation, parquetStore, spark);
  return null;
}
origin: uk.gov.gchq.gaffer/flink-library

public <OP extends Validatable & Operation> GafferAdder(final OP operation, final Store store) {
  this.store = store;
  this.validate = operation.isValidate();
  this.skipInvalid = operation.isSkipInvalidElements();
  final String maxQueueSizeOption = operation.getOption(FlinkConstants.MAX_QUEUE_SIZE);
  this.maxQueueSize = null != maxQueueSizeOption ? Integer.parseInt(maxQueueSizeOption) : MAX_QUEUE_SIZE_DEFAULT;
  graphId = store.getGraphId();
  schema = store.getSchema().toCompactJson();
  properties = store.getProperties().getProperties();
}
origin: uk.gov.gchq.gaffer/parquet-store

@Override
public Dataset<Row> doOperation(final GetDataFrameOfElements operation,
                final Context context,
                final Store store) throws OperationException {
  final SparkSession spark = SparkContextUtil.getSparkSession(context, store.getProperties());
  final User user = context.getUser();
  final Authorisations auths;
  final String visibility;
  if (user != null && user.getDataAuths() != null) {
    auths = new Authorisations(user.getDataAuths().toArray(new String[user.getDataAuths().size()]));
  } else {
    auths = new Authorisations();
  }
  if (store.getSchema().getVisibilityProperty() != null) {
    visibility = store.getSchema().getVisibilityProperty();
  } else {
    visibility = new String();
  }
  return doOperation(operation, (ParquetStore) store, spark, auths, visibility);
}
origin: uk.gov.gchq.gaffer/graph

private void updateStore(final GraphConfig config) {
  if (null == store) {
    store = Store.createStore(config.getGraphId(), cloneSchema(schema), properties);
  } else if ((null != config.getGraphId() && !config.getGraphId().equals(store.getGraphId()))
      || (null != schema)
      || (null != properties && !properties.equals(store.getProperties()))) {
    if (null == config.getGraphId()) {
      config.setGraphId(store.getGraphId());
    }
    if (null == schema || schema.getGroups().isEmpty()) {
      schema = store.getSchema();
    }
    if (null == properties) {
      properties = store.getProperties();
    }
    try {
      store.initialise(config.getGraphId(), cloneSchema(schema), properties);
    } catch (final StoreException e) {
      throw new IllegalArgumentException("Unable to initialise the store with the given graphId, schema and properties", e);
    }
  }
  store.setGraphLibrary(config.getLibrary());
  if (null == schema || schema.getGroups().isEmpty()) {
    schema = store.getSchema();
  }
}
origin: uk.gov.gchq.gaffer/graph

config.getLibrary().add(config.getGraphId(), schema, store.getProperties());
origin: uk.gov.gchq.gaffer/spark-library

final String entityGroups = groupsToString(operation.getView().getEntityGroups());
final SparkSession sparkSession = SparkContextUtil.getSparkSession(context, store.getProperties());
uk.gov.gchq.gaffer.storeStoregetProperties

Popular methods of Store

  • initialise
  • getSchema
  • execute
  • createStore
  • getGraphId
  • setGraphLibrary
  • validateSchemaElementDefinition
  • validateSchemas
  • getGraphLibrary
  • getNextOperations
  • getOriginalSchema
  • getSupportedOperations
  • getOriginalSchema,
  • getSupportedOperations,
  • getTraits,
  • hasTrait,
  • isSupported,
  • runAsync,
  • setOriginalSchema,
  • startCacheServiceLoader,
  • validateSchema

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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