Tabnine Logo
GfxdPartitionResolver.getRoutingObject
Code IndexAdd Tabnine to your IDE (free)

How to use
getRoutingObject
method
in
com.pivotal.gemfirexd.internal.engine.ddl.resolver.GfxdPartitionResolver

Best Java code snippets using com.pivotal.gemfirexd.internal.engine.ddl.resolver.GfxdPartitionResolver.getRoutingObject (Showing top 20 results out of 315)

origin: io.snappydata/gemfirexd-core

public Object[] getRoutingObjectsForKeys(Object[] regionKeysArray) {
 Object[] routingObjects = new Object[regionKeysArray.length];
 GfxdPartitionResolver refResolver = (GfxdPartitionResolver) this.baseRegion
   .getPartitionAttributes().getPartitionResolver();
 for (int i = 0; i < regionKeysArray.length; i++) {
  routingObjects[i] = refResolver.getRoutingObject(regionKeysArray[i],
    null, this.baseRegion);
 }
 return routingObjects;
}
origin: io.snappydata/gemfirexd-core

private Object getRoutingObject(LocalRegion r, Object key, Object value) {
 GfxdPartitionResolver pr = (GfxdPartitionResolver)r
   .getPartitionAttributes().getPartitionResolver();
 return pr.getRoutingObject(key, value, r);
}
origin: io.snappydata/gemfirexd

public Object[] getRoutingObjectsForKeys(Object[] regionKeysArray) {
 Object[] routingObjects = new Object[regionKeysArray.length];
 GfxdPartitionResolver refResolver = (GfxdPartitionResolver) this.baseRegion
   .getPartitionAttributes().getPartitionResolver();
 for (int i = 0; i < regionKeysArray.length; i++) {
  routingObjects[i] = refResolver.getRoutingObject(regionKeysArray[i],
    null, this.baseRegion);
 }
 return routingObjects;
}
origin: io.snappydata/snappydata-store-core

public Object[] getRoutingObjectsForKeys(Object[] regionKeysArray) {
 Object[] routingObjects = new Object[regionKeysArray.length];
 GfxdPartitionResolver refResolver = (GfxdPartitionResolver) this.baseRegion
   .getPartitionAttributes().getPartitionResolver();
 for (int i = 0; i < regionKeysArray.length; i++) {
  routingObjects[i] = refResolver.getRoutingObject(regionKeysArray[i],
    null, this.baseRegion);
 }
 return routingObjects;
}
origin: io.snappydata/gemfirexd

private Object getRoutingObject(LocalRegion r, Object key, Object value) {
 GfxdPartitionResolver pr = (GfxdPartitionResolver)r
   .getPartitionAttributes().getPartitionResolver();
 return pr.getRoutingObject(key, value, r);
}
origin: io.snappydata/snappydata-store-core

/**
 * Get the routing object given region key, raw value and callback argument.
 */
@Override
public final Object getRoutingObject(Object key, Object val,
  Object callbackArg, Region<?, ?> region) {
 if (callbackArg != null) {
  if (callbackArg instanceof WrappedCallbackArgument) {
   callbackArg = ((WrappedCallbackArgument)callbackArg)
     .getOriginalCallbackArg();
  }
  if (callbackArg instanceof GfxdCallbackArgument) {
   final GfxdCallbackArgument ca = (GfxdCallbackArgument)callbackArg;
   if (ca.isRoutingObjectSet()) {
    return ca.getRoutingObject();
   }
  }
 }
 return getRoutingObject(key, val, region);
}
origin: io.snappydata/gemfirexd-core

/**
 * Get the routing object given region key, raw value and callback argument.
 */
@Override
public final Object getRoutingObject(Object key, Object val,
  Object callbackArg, Region<?, ?> region) {
 if (callbackArg != null) {
  if (callbackArg instanceof WrappedCallbackArgument) {
   callbackArg = ((WrappedCallbackArgument)callbackArg)
     .getOriginalCallbackArg();
  }
  if (callbackArg instanceof GfxdCallbackArgument) {
   final GfxdCallbackArgument ca = (GfxdCallbackArgument)callbackArg;
   if (ca.isRoutingObjectSet()) {
    return ca.getRoutingObject();
   }
  }
 }
 return getRoutingObject(key, val, region);
}
origin: io.snappydata/gemfirexd

/**
 * Get the routing object given region key, raw value and callback argument.
 */
@Override
public final Object getRoutingObject(Object key, Object val,
  Object callbackArg, Region<?, ?> region) {
 if (callbackArg != null) {
  if (callbackArg instanceof WrappedCallbackArgument) {
   callbackArg = ((WrappedCallbackArgument)callbackArg)
     .getOriginalCallbackArg();
  }
  if (callbackArg instanceof GfxdCallbackArgument) {
   final GfxdCallbackArgument ca = (GfxdCallbackArgument)callbackArg;
   if (ca.isRoutingObjectSet()) {
    return ca.getRoutingObject();
   }
  }
 }
 return getRoutingObject(key, val, region);
}
origin: io.snappydata/gemfirexd

/**
 * This method will get the routing object if it requires a global index
 * lookup, using the "value" instead of global index lookup if non-null.
 * Intended usage is before invoking any of {@link Region#get},
 * {@link Region#put}, {@link Region#destroy} methods on accessor which will
 * lead to global index lookup by the resolver. To avoid looking up the global
 * index again at the datastore node, the result of this method should be set
 * as callback argument so that it is picked up by the resolver. The other
 * scenario where this is being used is when derby is doing a scan (e.g. scan
 * and update or destroy) for the operation and a handle to
 * {@link RegionEntry} object is already available. In such a case the routing
 * object can be determined using key+value without requiring any global index
 * lookup.
 */
public static Object getRoutingObjectFromGlobalIndex(LocalRegion region,
  Object key, Object value) throws StandardException {
 GfxdPartitionResolver resolver = getResolver(region);
 if (resolver != null
   && (resolver.requiresGlobalIndex() || resolver
     .requiresConnectionContext())) {
  try {
   return resolver.getRoutingObject(key, value, region);
  } catch (GemFireException gfeex) {
   throw Misc.processGemFireException(gfeex, gfeex,
     "lookup of global index for key " + key, true);
  }
 }
 return null;
}
origin: io.snappydata/gemfirexd-core

/**
 * This method will get the routing object if it requires a global index
 * lookup, using the "value" instead of global index lookup if non-null.
 * Intended usage is before invoking any of {@link Region#get},
 * {@link Region#put}, {@link Region#destroy} methods on accessor which will
 * lead to global index lookup by the resolver. To avoid looking up the global
 * index again at the datastore node, the result of this method should be set
 * as callback argument so that it is picked up by the resolver. The other
 * scenario where this is being used is when derby is doing a scan (e.g. scan
 * and update or destroy) for the operation and a handle to
 * {@link RegionEntry} object is already available. In such a case the routing
 * object can be determined using key+value without requiring any global index
 * lookup.
 */
public static Object getRoutingObjectFromGlobalIndex(LocalRegion region,
  Object key, Object value) throws StandardException {
 GfxdPartitionResolver resolver = getResolver(region);
 if (resolver != null
   && (resolver.requiresGlobalIndex() || resolver
     .requiresConnectionContext())) {
  try {
   return resolver.getRoutingObject(key, value, region);
  } catch (GemFireException gfeex) {
   throw Misc.processGemFireException(gfeex, gfeex,
     "lookup of global index for key " + key, true);
  }
 }
 return null;
}
origin: io.snappydata/snappydata-store-core

/**
 * This method will get the routing object if it requires a global index
 * lookup, using the "value" instead of global index lookup if non-null.
 * Intended usage is before invoking any of {@link Region#get},
 * {@link Region#put}, {@link Region#destroy} methods on accessor which will
 * lead to global index lookup by the resolver. To avoid looking up the global
 * index again at the datastore node, the result of this method should be set
 * as callback argument so that it is picked up by the resolver. The other
 * scenario where this is being used is when derby is doing a scan (e.g. scan
 * and update or destroy) for the operation and a handle to
 * {@link RegionEntry} object is already available. In such a case the routing
 * object can be determined using key+value without requiring any global index
 * lookup.
 */
public static Object getRoutingObjectFromGlobalIndex(LocalRegion region,
  Object key, Object value) throws StandardException {
 GfxdPartitionResolver resolver = getResolver(region);
 if (resolver != null
   && (resolver.requiresGlobalIndex() || resolver
     .requiresConnectionContext())) {
  try {
   return resolver.getRoutingObject(key, value, region);
  } catch (GemFireException gfeex) {
   throw Misc.processGemFireException(gfeex, gfeex,
     "lookup of global index for key " + key, true);
  }
 }
 return null;
}
origin: io.snappydata/snappydata-store-core

final Object routingObject = getRoutingObject(key, val,
  opDetails.getRegion());
setRoutingObjectInCallbackArg(routingObject, key, eeImpl, deOp,
origin: io.snappydata/gemfirexd

final Object routingObject = getRoutingObject(key, val,
  opDetails.getRegion());
setRoutingObjectInCallbackArg(routingObject, key, eeImpl, deOp,
origin: io.snappydata/gemfirexd-core

final Object routingObject = getRoutingObject(key, val,
  opDetails.getRegion());
setRoutingObjectInCallbackArg(routingObject, key, eeImpl, deOp,
origin: io.snappydata/gemfirexd-core

 return resolver.getRoutingObject(key, value, region);
} catch (GemFireException gfeex) {
 throw Misc.processGemFireException(gfeex, gfeex,
origin: io.snappydata/snappydata-store-core

 return resolver.getRoutingObject(key, value, region);
} catch (GemFireException gfeex) {
 throw Misc.processGemFireException(gfeex, gfeex,
origin: io.snappydata/gemfirexd

 return resolver.getRoutingObject(key, value, region);
} catch (GemFireException gfeex) {
 throw Misc.processGemFireException(gfeex, gfeex,
origin: io.snappydata/gemfirexd-core

 resolveKey = partitionResolver.getRoutingObject(key, value, region);
} catch (GemFireException gfeex) {
 throw Misc.processGemFireException(gfeex, gfeex,
origin: io.snappydata/gemfirexd

 resolveKey = partitionResolver.getRoutingObject(key, value, region);
} catch (GemFireException gfeex) {
 throw Misc.processGemFireException(gfeex, gfeex,
origin: io.snappydata/snappydata-store-core

 resolveKey = partitionResolver.getRoutingObject(key, value, region);
} catch (GemFireException gfeex) {
 throw Misc.processGemFireException(gfeex, gfeex,
com.pivotal.gemfirexd.internal.engine.ddl.resolverGfxdPartitionResolvergetRoutingObject

Javadoc

Get the routing object given region key, raw value and callback argument.

Popular methods of GfxdPartitionResolver

  • bindExpression
    Bind this expression. This means binding the sub-expressions, as well as figuring out what the retur
  • checkIfAllTypesSupported
  • cloneForColocation
  • cloneObject
  • getCanonicalizedExpression
    the canonical expression for PARTITION BY EXPRESSION
  • getColumnNames
  • getContainerOfGlobalIndex
  • getDVDFromConstantNode
  • getGlobalIndexContainer
  • getMasterTable
  • getPartitioningColumnIndex
  • getPartitioningColumnsCount
  • getPartitioningColumnIndex,
  • getPartitioningColumnsCount,
  • getRoutingKeyForColumn,
  • getRoutingObjectForExpression,
  • getRoutingObjectsForList,
  • getRoutingObjectsForPartitioningColumns,
  • getRoutingObjectsForRange,
  • getSchemaName,
  • getTableName

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Best plugins for Eclipse
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