id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
5093728_1 | public T run() {
T result = null;
if(context.hasFeature(featureName)) {
result = onFeatureEnabled();
} else {
result = onFeatureDisabled();
}
return result;
} |
5093728_2 | public <T extends Annotation> T getAnnotation(Method method) throws AnnotationNotFoundException {
T annotation = (T) method.getAnnotation(anClass);
if(annotation == null && originClass != null && !method.getDeclaringClass().equals(originClass)) {
try {
Method implementedMethod = originClass.... |
5093728_3 | public <T extends Annotation> T getAnnotation(Method method) throws AnnotationNotFoundException {
T annotation = (T) method.getAnnotation(anClass);
if(annotation == null && originClass != null && !method.getDeclaringClass().equals(originClass)) {
try {
Method implementedMethod = originClass.... |
5093728_4 | public boolean isFeatureAvailable(FeatureSwitch annotation) {
boolean found = false;
if(annotation != null) {
String statusValue = annotation.status();
if("".equals(statusValue)) {
statusValue = config.enabledStatus.getSystemName();
}
FeatureStatus status = config.sta... |
5093728_5 | public static ProxyBuilder fromContext(FeatureContext context) {
Preconditions.throwIllegalArgumentExceptionIfNull(context, "FeatureContext argument is required to create ProxyBuilder.");
Preconditions.throwIllegalArgumentExceptionIfNull(context.getConfig().getObserverClass(), "given Configuration object of context d... |
5093728_6 | public static ProxyBuilder fromContext(FeatureContext context) {
Preconditions.throwIllegalArgumentExceptionIfNull(context, "FeatureContext argument is required to create ProxyBuilder.");
Preconditions.throwIllegalArgumentExceptionIfNull(context.getConfig().getObserverClass(), "given Configuration object of context d... |
5093728_7 | public static ProxyBuilder fromContext(FeatureContext context) {
Preconditions.throwIllegalArgumentExceptionIfNull(context, "FeatureContext argument is required to create ProxyBuilder.");
Preconditions.throwIllegalArgumentExceptionIfNull(context.getConfig().getObserverClass(), "given Configuration object of context d... |
5093728_8 | @Override
public Feature read() {
if(keyEnum == null || rawEntryData == null) {
throw new UnsupportedFormatException("unable from InputStream");
}
Feature next = null;
if(keyEnum.hasMoreElements()) {
Object key = keyEnum.nextElement();
if(key instanceof String) {
String value = rawEntr... |
5093728_9 | @Override
public Feature read() {
if(keyEnum == null || rawEntryData == null) {
throw new UnsupportedFormatException("unable from InputStream");
}
Feature next = null;
if(keyEnum.hasMoreElements()) {
Object key = keyEnum.nextElement();
if(key instanceof String) {
String value = rawEntr... |
5094929_0 | static void sum(InputStream in, PrintStream out) {
try (
Scanner scanner = new Scanner(in);) {
int a = scanner.nextInt();
int b = scanner.nextInt();
int s = a + b;
out.print(s);
}
} |
5104280_0 | public static String humanize(String value) {
return capitalize(replace(value, "_", " "));
} |
5104280_1 | public static String humanize(String value) {
return capitalize(replace(value, "_", " "));
} |
5104280_2 | public static String humanize(String value) {
return capitalize(replace(value, "_", " "));
} |
5104280_3 | public T get(String key, CacheableData<T> cacheableData) {
if (value.get(key) != null) {
return value.get(key);
}
T fetchedData = cacheableData.fetch();
value.put(key, fetchedData);
return fetchedData;
} |
5104280_4 | public T get(String key, CacheableData<T> cacheableData) {
if (value.get(key) != null) {
return value.get(key);
}
T fetchedData = cacheableData.fetch();
value.put(key, fetchedData);
return fetchedData;
} |
5104280_5 | public T get(String key, CacheableData<T> cacheableData) {
if (value.get(key) != null) {
return value.get(key);
}
T fetchedData = cacheableData.fetch();
value.put(key, fetchedData);
return fetchedData;
} |
5104280_6 | public static Integer tryParse(String value, int defaultValue) {
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
return defaultValue;
}
} |
5104280_7 | public static Integer tryParse(String value, int defaultValue) {
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
return defaultValue;
}
} |
5104280_8 | public static Integer tryParse(String value, int defaultValue) {
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
return defaultValue;
}
} |
5104280_9 | public static Integer tryParse(String value, int defaultValue) {
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
return defaultValue;
}
} |
5109749_0 | public static String getProblemKey(Problem problem) {
if (problem != null) {
return new StringBuilder(problem.getClass().getName()).append(".").append(problem.name()).toString();
}
return null;
} |
5109749_1 | public static String formatMessage(String pattern, Object[] params) {
if (Checker.isBlank(pattern))
return null;
// Je-li sablona zadana, kontrolujeme parametry metody
try {
StringBuilder result = new StringBuilder();
int fromIndex = 0;
int toIndex;
while ((toIndex = pattern.indexOf('{', fromIndex)) >= 0) ... |
5109749_2 | public static String formatMessage(String pattern, Object[] params) {
if (Checker.isBlank(pattern))
return null;
// Je-li sablona zadana, kontrolujeme parametry metody
try {
StringBuilder result = new StringBuilder();
int fromIndex = 0;
int toIndex;
while ((toIndex = pattern.indexOf('{', fromIndex)) >= 0) ... |
5109749_3 | public static String formatMessage(String pattern, Object[] params) {
if (Checker.isBlank(pattern))
return null;
// Je-li sablona zadana, kontrolujeme parametry metody
try {
StringBuilder result = new StringBuilder();
int fromIndex = 0;
int toIndex;
while ((toIndex = pattern.indexOf('{', fromIndex)) >= 0) ... |
5109749_4 | public static String removeAllNsPrefixes(String xmlString) {
return xmlString.replaceAll("<[a-zA-Z0-9]*:", "<").replaceAll("</[a-zA-Z0-9]*:", "</");
} |
5109749_5 | public static String removeTags(String document) {
return document.replaceAll("<.*?>", "");
} |
5109749_6 | public static String domToString(Node node, String encoding, boolean pretty) throws ProblemException {
if (node == null)
return null;
String usedEncoding = encoding == null ? DEFAULT_ENCODING : encoding;
if (Checker.isBlank(usedEncoding)) {
throw new ProblemException(XmlProblem.INVALID_ENCODING);
}
Transformer... |
5109749_7 | public static Document createDOMDocument(String xml) throws ProblemException {
if (Checker.isBlank(xml))
return null;
try {
InputSource is = new InputSource(new StringReader(xml));
return getDocBuilder().parse(is);
} catch (IOException | SAXException e) {
logger.error(e.toString(), e);
throw new ProblemExc... |
5109749_8 | public static Node findNode(Node document, String xPathExpression) throws ProblemException {
try {
XPath xpath = XPathFactory.newInstance().newXPath();
Node node = (Node) xpath.evaluate(xPathExpression, document, XPathConstants.NODE);
return node;
} catch (XPathExpressionException e) {
logger.error(e.toString... |
5109749_9 | public static Element getFirstElement(Node node) {
NodeList childNodes = node.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node childNode = childNodes.item(i);
if (childNode instanceof Element) {
return (Element) childNode;
}
}
return null;
} |
511297_10 | @Override
public <T> void validateAndSetDefaults(ClassCacheMgr cacheMgr, CFMappingDef<T> cfMapDef) {
if (cfMapDef.isBaseEntity()) {
validateBaseClassInheritance(cfMapDef);
} else if (cfMapDef.isPersistableDerivedEntity()) {
validateDerivedClassInheritance(cfMapDef);
} else if (!cfMapDef.isNonPersistableDe... |
511297_11 | @Override
public <T> void validateAndSetDefaults(ClassCacheMgr cacheMgr, CFMappingDef<T> cfMapDef) {
if (cfMapDef.isBaseEntity()) {
validateBaseClassInheritance(cfMapDef);
} else if (cfMapDef.isPersistableDerivedEntity()) {
validateDerivedClassInheritance(cfMapDef);
} else if (!cfMapDef.isNonPersistableDe... |
511297_12 | @Override
public <T> void validateAndSetDefaults(ClassCacheMgr cacheMgr, CFMappingDef<T> cfMapDef) {
if (cfMapDef.isBaseEntity()) {
validateBaseClassInheritance(cfMapDef);
} else if (cfMapDef.isPersistableDerivedEntity()) {
validateDerivedClassInheritance(cfMapDef);
} else if (!cfMapDef.isNonPersistableDe... |
511297_13 | @Override
public <T> void validateAndSetDefaults(ClassCacheMgr cacheMgr, CFMappingDef<T> cfMapDef) {
if (cfMapDef.isBaseEntity()) {
validateBaseClassInheritance(cfMapDef);
} else if (cfMapDef.isPersistableDerivedEntity()) {
validateDerivedClassInheritance(cfMapDef);
} else if (!cfMapDef.isNonPersistableDe... |
511297_14 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_15 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_16 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_17 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_18 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_19 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_20 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_21 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_22 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_23 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_24 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_25 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_26 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_27 | public <T> CFMappingDef<T> initializeCacheForClass(Class<T> clazz) {
CFMappingDef<T> cfMapDef = initializeColumnFamilyMapDef(clazz);
try {
initializePropertiesMapDef(cfMapDef);
} catch (IntrospectionException e) {
throw new HectorObjectMapperException(e);
} catch (InstantiationException e) {
throw n... |
511297_28 | double score() {
double log = 0d;
if (latencies.size() > 0) {
double probability = p(SENTINEL_COMPARE);
log = (-1) * Math.log10(probability);
}
return log;
} |
511297_29 | @Override
public HClientPool getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts) {
HClientPool pool = getPoolSafely(pools);
if ( excludeHosts != null && excludeHosts.size() > 0 ) {
while ( excludeHosts.contains(pool.getCassandraHost()) ) {
pool = getPoolSafely(pools);
if ... |
511297_30 | @Override
public HClientPool getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts) {
HClientPool pool = getPoolSafely(pools);
if ( excludeHosts != null && excludeHosts.size() > 0 ) {
while ( excludeHosts.contains(pool.getCassandraHost()) ) {
pool = getPoolSafely(pools);
if ... |
511297_31 | @Override
public HClientPool getPool(Collection<HClientPool> pools,
Set<CassandraHost> excludeHosts) {
HClientPool pool = getPoolSafely(pools);
if ( excludeHosts != null && excludeHosts.size() > 0 ) {
while ( excludeHosts.contains(pool.getCassandraHost()) ) {
pool = getPoolSafely(pools);
if ... |
511297_32 | @Override
public void shutdown() {
if (!active.compareAndSet(true, false) ) {
throw new IllegalArgumentException("shutdown() called for inactive pool: " + getName());
}
log.info("Shutdown triggered on {}", getName());
Set<HClient> clients = new HashSet<HClient>();
availableClientQueue.drainTo(clients);
... |
511297_33 | @Override
public HClientPool getPool(Collection<HClientPool> pools, Set<CassandraHost> excludeHosts) {
List<HClientPool> vals = Lists.newArrayList(pools);
// shuffle pools to avoid always returning the same one when we are not terribly busy
Collections.shuffle(vals);
Collections.sort(vals, new ShufflingCompare(... |
511297_34 | @Override
public HClientPool getPool(Collection<HClientPool> pools, Set<CassandraHost> excludeHosts) {
List<HClientPool> vals = Lists.newArrayList(pools);
// shuffle pools to avoid always returning the same one when we are not terribly busy
Collections.shuffle(vals);
Collections.sort(vals, new ShufflingCompare(... |
511297_35 | @Override
public HClientPool getPool(Collection<HClientPool> pools, Set<CassandraHost> excludeHosts) {
List<HClientPool> vals = Lists.newArrayList(pools);
// shuffle pools to avoid always returning the same one when we are not terribly busy
Collections.shuffle(vals);
Collections.sort(vals, new ShufflingCompare(... |
511297_36 | public boolean checkTimeout(CassandraHost cassandraHost) {
timeouts.putIfAbsent(cassandraHost, new LinkedBlockingQueue<Long>());
long currentTimeMillis = System.currentTimeMillis();
timeouts.get(cassandraHost).add(currentTimeMillis);
boolean timeout = false;
// if there are 3 timeouts within 500ms, return fal... |
511297_37 | public boolean addCassandraHost(CassandraHost cassandraHost) {
if ( !getHosts().contains(cassandraHost) ) {
HClientPool pool = null;
try {
cassandraHostConfigurator.applyConfig(cassandraHost);
pool = cassandraHostConfigurator.getLoadBalancingPolicy().createConnection(clientFactory, cassandraHost, ... |
511297_38 | public boolean suspendCassandraHost(CassandraHost cassandraHost) {
HClientPool pool = hostPools.remove(cassandraHost);
boolean removed = pool != null;
if ( removed ) {
suspendedHostPools.put(cassandraHost, pool);
}
listenerHandler.fireOnSuspendHost(cassandraHost, removed);
log.info("Suspend operation st... |
511297_39 | public void operateWithFailover(Operation<?> op) throws HectorException {
final Object timerToken = timer.start(op.stopWatchTagName);
int retries = Math.min(op.failoverPolicy.numRetries, hostPools.size());
HClient client = null;
HClientPool pool = null;
boolean success = false;
boolean retryable = false;
... |
511297_40 | public void doAddNodes() {
if (log.isDebugEnabled()) {
log.debug("Node discovery running...");
}
Set<CassandraHost> foundHosts = discoverNodes();
if (foundHosts != null && foundHosts.size() > 0) {
log.info("Found {} new host(s) in Ring", foundHosts.size());
for (CassandraHost cassandraHost : foundHo... |
511297_41 | public void doAddNodes() {
if (log.isDebugEnabled()) {
log.debug("Node discovery running...");
}
Set<CassandraHost> foundHosts = discoverNodes();
if (foundHosts != null && foundHosts.size() > 0) {
log.info("Found {} new host(s) in Ring", foundHosts.size());
for (CassandraHost cassandraHost : foundHo... |
511297_42 | public Set<CassandraHost> discoverNodes() {
Cluster cluster = HFactory.getCluster(connectionManager.getClusterName());
if (cluster == null) {
return null;
}
Set<CassandraHost> existingHosts = connectionManager.getHosts();
Set<CassandraHost> foundHosts = new HashSet<CassandraHost>();
if (log.isDebugEnab... |
511297_43 | @Override
public HConsistencyLevel get(OperationType op) {
return (op == OperationType.READ) ? defaultReadConsistencyLevel : defaultWriteConsistencyLevel;
} |
511297_44 | @Override
public Long fromByteBuffer(ByteBuffer byteBuffer) {
if ((byteBuffer == null) || (byteBuffer.remaining() < 8)) {
return null;
}
long l = byteBuffer.getLong();
return l;
} |
511297_45 | @Override
public Integer fromByteBuffer(ByteBuffer byteBuffer) {
if (byteBuffer == null) {
return null;
}
int in = byteBuffer.getInt();
return in;
} |
511297_46 | @Override
public Integer fromBytes(byte[] bytes) {
ByteBuffer bb = ByteBuffer.allocate(4).put(bytes, 0, 4);
bb.rewind();
return bb.getInt();
} |
511297_47 | public void clear() {
Mutator<K> mutator = HFactory.createMutator(this.keyspace, this.keySerializer, new BatchSizeHint(1, this.mutateInterval));
SliceCounterQuery<K, N> query = HFactory.createCounterSliceQuery(this.keyspace, this.keySerializer, this.nameSerializer).
setColumnFamily(this.cf).
setKey(this.row... |
511297_48 | public CassandraHost[] buildCassandraHosts() {
if (this.hosts == null) {
throw new IllegalArgumentException("Need to define at least one host in order to apply configuration.");
}
String[] hostVals = hosts.split(",");
CassandraHost[] cassandraHosts = new CassandraHost[hostVals.length];
for (int x=0; x<hos... |
511297_49 | public void applyConfig(CassandraHost cassandraHost) {
cassandraHost.setMaxActive(maxActive);
cassandraHost.setLifo(lifo);
cassandraHost.setMaxWaitTimeWhenExhausted(maxWaitTimeWhenExhausted);
cassandraHost.setMaxExhaustedTimeBeforeMarkingAsDown(maxExhaustedTimeBeforeMarkingAsDown);
cassandraHost.setUseThriftF... |
511297_50 | public void setClientFactoryClass(String cls) {
String className = cls.contains(".") ? cls : "me.prettyprint.cassandra.connection.factory." + cls;
Class<? extends HClientFactory> temp;
try {
temp = Class.forName(className).asSubclass(HClientFactory.class);
} catch (ClassNotFoundException e) {
throw new ... |
511297_51 | public void setClientFactoryClass(String cls) {
String className = cls.contains(".") ? cls : "me.prettyprint.cassandra.connection.factory." + cls;
Class<? extends HClientFactory> temp;
try {
temp = Class.forName(className).asSubclass(HClientFactory.class);
} catch (ClassNotFoundException e) {
throw new ... |
511297_52 | @Override
public Iterator<K> iterator() {
return keyIterator;
} |
511297_53 | public void copy() throws HectorException {
if (this.cf == null) {
throw new HectorException("Unable to clone row with null column family");
}
if (this.rowKey == null) {
throw new HectorException("Unable to clone row with null row key");
}
if (this.destinationKey == null) {
throw new HectorException("Unable ... |
511297_54 | public BatchMutation<K> addInsertion(K key, List<String> columnFamilies,
Column column) {
Mutation mutation = new Mutation();
mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setColumn(column));
addMutation(key, columnFamilies, mutation);
return this;
} |
511297_55 | public BatchMutation<K> addSuperInsertion(K key, List<String> columnFamilies,
SuperColumn superColumn) {
Mutation mutation = new Mutation();
mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setSuper_column(superColumn));
addMutation(key, columnFamilies, mutation);
return this;
} |
511297_56 | public BatchMutation<K> addDeletion(K key, List<String> columnFamilies, Deletion deletion) {
Mutation mutation = new Mutation();
mutation.setDeletion(deletion);
addMutation(key, columnFamilies, mutation);
return this;
} |
511297_57 | public boolean isEmpty() {
return mutationMap.isEmpty() ;
} |
511297_58 | public BatchMutation<K> addCounterInsertion(K key, List<String> columnFamilies, CounterColumn counterColumn) {
Mutation mutation = new Mutation();
mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setCounter_column(counterColumn));
addMutation(key, columnFamilies, mutation);
return this;
} |
511297_59 | public BatchMutation<K> addSuperCounterInsertion(K key, List<String> columnFamilies,
CounterSuperColumn counterSuperColumn) {
Mutation mutation = new Mutation();
mutation.setColumn_or_supercolumn(new ColumnOrSuperColumn().setCounter_super_column(counterSuperColumn));
addMutation(key, columnFamilies, mutation... |
511297_60 | public String getHostsUsed() {
String hostsUsed= new String();
StringBuilder strBldr = new StringBuilder();
Set<Entry<String,CassandraHost>> se= m_hostsUsed.entrySet();
for (Entry<String, CassandraHost> entry : se)
{
strBldr.append(entry.getValue().toString());
strBldr.append(';');
}
if(se.size()>0 && s... |
511297_61 | public int getThreadCountUsed() {
return threadCount;
} |
511297_62 | public int getRowCountPerQueryUsed() {
return numKeysPerThread;
} |
511297_63 | public ColumnFamilyResult<K, N> queryColumns(K key) {
return doExecuteSlice(key, activeSlicePredicate);
} |
511297_64 | public ColumnFamilyResult<K, N> queryColumns(K key) {
return doExecuteSlice(key, activeSlicePredicate);
} |
511297_65 | public <V> HColumn<N, V> querySingleSubColumn(K key,
SN columnName, N subColumnName, Serializer<V> valueSerializer) {
SuperCfResult<K,SN,N> result = doExecuteSlice(key, columnName, activeSlicePredicate);
if (result == null) {
return null;
}
HColumn<N,ByteBuffer> origCol = result.getColumn(subCo... |
511297_66 | public SuperCfResult<K, SN, N> querySuperColumns(K key, HSlicePredicate<SN> predicate) {
return doExecuteSlice(key,null,predicate);
} |
511297_67 | public Object getObjectInstance(Object object, Name jndiName, Context context,
Hashtable<?, ?> environment) throws Exception {
Reference resourceRef = null;
if (object instanceof Reference) {
resourceRef = (Reference) object;
} else {
throw new Exception("Object provided is not a javax.naming.R... |
511297_68 | @Override
ublic <T> DynamicComposite addComponent(int index, T element, ComponentEquality equality) {
super.addComponent(index, element, equality);
return this;
} |
511297_69 | @Override
ublic <T> DynamicComposite addComponent(int index, T element, ComponentEquality equality) {
super.addComponent(index, element, equality);
return this;
} |
511297_70 | public static ComparatorType getByClassName(String className) {
if (className == null) {
return null;
}
ComparatorType type = valuesMap.get(className);
if (type == null) {
return new ComparatorType(className);
}
return type;
} |
511297_71 | public static ComparatorType getByClassName(String className) {
if (className == null) {
return null;
}
ComparatorType type = valuesMap.get(className);
if (type == null) {
return new ComparatorType(className);
}
return type;
} |
5122021_0 | public static Unsafe get() {
return UnsafeAccessor.UNSAFE;
} |
5122021_1 | public <T extends Enum> T ask(T defaultValue, String format, Object... args) {
return ask(defaultValue, String.format(format, args));
} |
5122021_2 | public <T extends Enum> T ask(T defaultValue, String format, Object... args) {
return ask(defaultValue, String.format(format, args));
} |
5122021_3 | public <T extends Enum> T ask(T defaultValue, String format, Object... args) {
return ask(defaultValue, String.format(format, args));
} |
5122021_4 | public <T extends Enum> T ask(T defaultValue, String format, Object... args) {
return ask(defaultValue, String.format(format, args));
} |
5122021_5 | public <T extends Enum> T ask(T defaultValue, String format, Object... args) {
return ask(defaultValue, String.format(format, args));
} |
5122021_6 | @Override
public int read() {
try {
return reader.read();
} catch (IOException e) {
throw new ErrorMessage(e, "Error reading input");
}
} |
5122021_7 | @Override
public String readLine() {
try {
return reader.readLine();
} catch (IOException e) {
throw new ErrorMessage(e, "Error reading input");
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.