Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2006 Erik Bengtson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | 996 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2002 Kelly Grizzle (TJDO) and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 2,813 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2005 Erik Bengtson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | 775 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2009 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://... | 807 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2009 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://... | 244 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2008 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 1,214 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2010 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://... | 3,195 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2011 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://... | 256 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2007 Xuan Baldauf and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | 898 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2007 Xuan Baldorf and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | 303 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2006 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 429 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2008 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 1,244 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2002 Kelly Grizzle (TJDO) and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 1,315 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2002 Mike Martin (TJDO) and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 420 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2007 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 2,926 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2005 Erik Bengtson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | 338 |
github-java-corpus | 2,012 | /******************************************************************
Copyright (c) 2010 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.... | 225 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2010 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://... | 510 |
github-java-corpus | 2,012 | package org.datanucleus.plugin;
import java.util.HashSet;
import java.util.Map;
import junit.framework.TestCase;
import org.apache.log4j.Appender;
import org.apache.log4j.Layout;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.spi.ErrorHandler;
import org.apache.log... | 3,397 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2005 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 213 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 26-Oct-2004 Andy Jefferson and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apac... | 3,519 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2005 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 437 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2005 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 868 |
github-java-corpus | 2,012 | package org.datanucleus.util;
import org.datanucleus.util.ReferenceValueMap;
import org.datanucleus.util.WeakValueMap;
/**
* Tests the functionality of {@link WeakValueMap}.
*/
public class WeakValueMapTest extends ReferenceValueMapTestCase
{
/**
* Used by the JUnit framework to construct tests.... | 146 |
github-java-corpus | 2,012 | package org.datanucleus.util;
import org.datanucleus.util.ReferenceValueMap;
import org.datanucleus.util.SoftValueMap;
/**
* Tests the functionality of {@link SoftValueMap}.
*/
public class SoftValueMapTest extends ReferenceValueMapTestCase
{
/**
* Used by the JUnit framework to construct tests.... | 146 |
github-java-corpus | 2,012 | package org.datanucleus.util;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import junit.framework.TestCase;
import org.datanucleus.util.ReferenceValueMap;
/**
* Abstract base class for tests that test the functionality of a
* {@link ReferenceValueMap... | 827 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2004 Andy Jefferson and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/... | 1,737 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2004 Erik Bengtson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | 435 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2010 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 2,630 |
github-java-corpus | 2,012 | package org.datanucleus.store.types.sco;
import java.util.Collection;
import java.util.Iterator;
import junit.framework.TestCase;
import org.datanucleus.store.ObjectProvider;
import org.datanucleus.store.StoreManager;
import org.datanucleus.store.scostore.CollectionStore;
import org.datanucleus.store.types... | 580 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2010 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 1,288 |
github-java-corpus | 2,012 | package org.datanucleus.store.query;
import junit.framework.TestCase;
import junit.framework.Assert;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.ListIterator;
/**
* Test case for AbstractQueryResult
*/
public class AbstractQueryResultTest extends TestCase
{
Li... | 594 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2006 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 466 |
github-java-corpus | 2,012 | /**********************************************************************
Copyright (c) 2010 Erik Bengtson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
ht... | 303 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.connection.HConnectionManager;
import me.prettyprint.ca... | 5,216 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import me.prettyprint.cassandra.utils.Assert;
import me.prettyprint.hector.api.ddl.ColumnDefinition;
import me.prettyprint.hector.api.ddl.ColumnIndexType;
import org.... | 725 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import me.prettyprint.hector.api.exceptions.HectorException;
/**
* Translates exceptions throw by thrift or pool to HectorException instances.
*
* @author Ran Tavory (ran@outbrain.com)
*
*/
public interface ExceptionsTranslator {
HectorException translate(Throwable... | 69 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import me.prettyprint.cassandra.utils.Assert;
import me.prettyprint.hector.api.ddl.ColumnDefinition;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
import me.prettyprint.hector.api.... | 1,887 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import me.prettyprint.cassandra.jndi.CassandraClientJndiResourcePool;
/**
* This is a wrapper class around {@link CassandraClientFactory} used by the JNDI
* resource pool {@link CassandraClientJndiResourcePool}.
*
* @author Perry Hoekstra (dutchman_mn@charter.net)
*
*/
... | 175 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.List;
import java.util.Set;
import me.prettyprint.hector.api.exceptions.HectorTransportException;
/**
* Defines the various JMX methods the CassandraClientMonitor exposes.
*
* @author Ran Tavory (ran@outbain.com)
*
*/
public interface CassandraClientMon... | 751 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.NoSuchElementException;
import me.prettyprint.hector.api.exceptions.HCassandraInternalException;
import me.prettyprint.hector.api.exceptions.HInvalidRequestException;
import me.prettyprint.hector.api.exceptions.HNotFoundException;
import me.prettyprint.hector... | 559 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.lang.management.ManagementFactory;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URL;
import javax.management.InstanceAlreadyExistsException;
import javax.management.MBeanRegistrationException;
import javax.ma... | 1,261 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.List;
import java.util.Map;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
import me.prettyprint.hector.api.exceptions.HectorException;
import or... | 813 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.io.Serializable;
import me.prettyprint.cassandra.connection.CassandraHostRetryService;
import me.prettyprint.cassandra.connection.LoadBalancingPolicy;
import me.prettyprint.cassandra.connection.NodeAutoDiscoverService;
import me.prettyprint.cassandra.connection.Ro... | 1,855 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
/**
* What should the client do if a call to cassandra node fails and we suspect that the node is
* down. (e.g. it's a communication error, not an application error).
*
* {@value #FAIL_FAST} will return the error as is to the user and not try anything smart
*
* {@value #... | 322 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicLong;
import me.prettyprint.cassandra.connection.Concurrent... | 1,142 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import me.prettyprint.hector.api.Serializer;
import org.apache.cassandra.thrift.Column;
import org.apache.cassandra.thrift.... | 877 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import me.prettyprint.hector.api.exceptions.PoolExhaustedException;
/**
* Policy what to do when the connection pool is exhausted.
* @author Ran Tavory (rantav@gmail.com)
*
*/
public enum ExhaustedPolicy {
/**
* If the pool is full, fail with the exception {@link Poo... | 139 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.net.InetAddress;
import java.net.UnknownHostException;
import me.prettyprint.hector.api.ClockResolution;
import me.prettyprint.hector.api.factory.HFactory;
import org.apache.commons.pool.impl.GenericObjectPool;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... | 1,540 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
/**
* Specifies the "type" of operation - read or write.
* It's used for perf4j, so should be in sync with hectorLog4j.xml
* @author Ran Tavory (ran@outbain.com)
*
*/
public enum OperationType {
/** Read operations*/
READ,
/** Write operations */
WRITE,
/** Met... | 115 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.Map;
import me.prettyprint.cassandra.connection.HConnectionManager;
import me.prettyprint.hector.api.ConsistencyLevelPolicy;
import me.prettyprint.hector.api.exceptions.HectorTransportException;
/**
*
* @author Ran Tavory (rantav@gmail.com)
*
*/
/*packa... | 245 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import me.prettyprint.cassandra.connection.HConnectionManager;
import me.prettyprint.cassandra.service.clock.MicrosecondsSyncClockResolution;
import me.prettyprint.hector.api.Cloc... | 2,009 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.Collections;
import java.util.Map;
import me.prettyprint.cassandra.model.ExecutionResult;
import me.prettyprint.cassandra.service.CassandraClientMonitor.Counter;
import me.prettyprint.hector.api.ConsistencyLevelPolicy;
import me.prettyprint.hector.api.excepti... | 798 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2009 Openwave Systems Inc. All rights reserved.
*
* The copyright to the computer software herein is the property of
* Openwave Systems Inc. The software may be used and/or copied only
* with the written permission of Openwave Systems Inc. or in accordance
* with the terms and conditions ... | 147 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service.clock;
import me.prettyprint.hector.api.ClockResolution;
/**
* Milliseconds Resolution used to create clocks.
*
* @author Patricio Echague (pechague@gmail.com)
*/
public class MicrosecondsClockResolution extends AbstractClockResolution implements ClockResolution {... | 102 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service.clock;
import me.prettyprint.hector.api.ClockResolution;
/**
* Milliseconds Resolution used to create clocks.
*
* @author Patricio Echague (pechague@gmail.com)
*/
public class MillisecondsClockResolution extends AbstractClockResolution implements ClockResolution {... | 81 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service.clock;
import me.prettyprint.hector.api.ClockResolution;
/**
* Seconds Resolution used to create clocks.
*
* @author Patricio Echague (pechague@gmail.com)
*/
public class SecondsClockResolution extends AbstractClockResolution implements ClockResolution {
@Ove... | 84 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service.clock;
import me.prettyprint.hector.api.ClockResolution;
/**
* Synchronized Milliseconds Resolution used to create clocks.
*
* @author Patricio Echague (pechague@gmail.com)
*/
public class MicrosecondsSyncClockResolution extends AbstractClockResolution implement... | 258 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service.spring;
import java.nio.ByteBuffer;
import java.util.List;
import me.prettyprint.cassandra.model.ConfigurableConsistencyLevel;
import me.prettyprint.cassandra.model.HColumnImpl;
import me.prettyprint.cassandra.model.IndexedSlicesQuery;
import me.prettyprint.cassandra.model.Mut... | 3,158 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service.spring;
import java.nio.ByteBuffer;
import java.util.List;
import me.prettyprint.cassandra.model.IndexedSlicesQuery;
import me.prettyprint.cassandra.service.CassandraHost;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Serializer;
import me.prettypr... | 1,499 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
/**
* System properties used by Hector.
*
* @author Ran Tavory (rantav@gmail.com)
*
*/
public enum SystemProperties {
/**
* Should hector perform name resolution?
* Default: no; Do not perform name resolution
* For example: -DHECTOR_PERFORM_NAME_RESOLUTION=tru... | 146 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.utils.Assert;
import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition;
import me.prettyprint.hector.api.ddl.KeyspaceDefinition;
import o... | 764 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.service;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import me.prettyprint.hector.api.HConsistencyLevel;
import me.prettyprint.hector.api.exceptions.HNotFoundException;
import me.prettyprint.hector.api.exceptions.HectorException;
import org.apache.cassand... | 1,648 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import me.prettyprint.cassandra.service.CassandraHost;
import me.prettyprint.cassandra.service.CassandraHost... | 946 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import me.prettyprint.cassandra.service.CassandraHost;
public class LeastActiveBalan... | 324 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import me.prettyprint.cassandra.service.CassandraClientMonitor;
import me.prettyprint.cassandra.service.CassandraCl... | 2,456 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.Collection;
import java.util.Set;
import java.util.concurrent.atomic.AtomicLong;
import org.cliffc.high_scale_lib.Counter;
import me.prettyprint.cassandra.service.CassandraHost;
public class RoundRobinBalancingPolicy implements LoadBalancingPolicy {
p... | 245 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import me.prettyprint.cassandra.service.CassandraHostConfigurator;
public abstract class BackgroundCassandraHostService {
protected... | 235 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
public interface PoolMetric {
int getNumActive();
int getNumIdle();
int getNumBlockedThreads();
String getName();
boolean getIsActive();
}
| 43 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.Collection;
import java.util.Set;
import me.prettyprint.cassandra.service.CassandraHost;
public interface LoadBalancingPolicy {
ConcurrentHClientPool getPool(Collection<ConcurrentHClientPool> pools, Set<CassandraHost> excludeHosts);
}
| 63 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.concurrent.atomic.AtomicLong;
import me.prettyprint.cassandra.service.CassandraHost;
import me.prettyprint.cassandra.service.SystemProperties;
import me.prettyprint.hector.api.exceptions.HInvalidRequestException;
import me.prettyprint.hector.api.exceptions... | 1,261 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import me.prettyprint.cassandra.service.CassandraHost;
import me.prettyprint.cassandra.service.CassandraHostConfigurator;
import me.prettyprint.hector.api.Cluster;
... | 887 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.connection;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import me.prettyprint.cassandra.service... | 1,665 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.ByteBuffer;
import me.prettyprint.hector.api.Serializer;
import me.prettyprint.hecto... | 302 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
/**
* Converts bytes to Long and vise a versa
*
* @author Ran Tavory
*
*/
public final class LongSerializer extends AbstractSerializer<Long> {
private static final LongSerializer instance = new LongSerializer();
public static LongSe... | 274 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import me.prettyprint.hector.api.Serializer;
/**
* A base cl... | 807 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import me.prettyprint.cassandra.serializers.AbstractSerializer;
import me.prettyprint.cassandra.serializers.LongSerializer;
/**
* Uses LongSerializer via translating Doubles to and from raw long bytes form.
*
* @author Yuri Finkelstein
*... | 166 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
/**
* A StringSerializer translates the byte[] to and from string using utf-8 encoding.
* @author Ran Tavory
*
*/
public final class StringSerializer extends AbstractSerializer<String> {
priva... | 241 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import java.util.UUID;
/**
* A UUIDSerializer translates the byte[] to and from UUID types.
* @author Ed Anuff
*
*/
public final class UUIDSerializer extends AbstractSerializer<UUID> {
private static final UUIDSerializer instance = new U... | 263 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import java.util.Date;
/**
* Converts bytes to Date and vice versa, by first converting the Date to or
* from a long which represents the specified number of milliseconds since
* the standard base time known as "the Unix epoch", that is
* J... | 235 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.util.Date;
import java.util.UUID;
import me.prettyprint.hector.api.Serializer;
/**
* Utility class that infers the concrete Serializer needed to turn a value into
* its binary representation
*
* @author Bozhidar Bozhanov
*
*/
public class ... | 460 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import me.prettyprint.hector.api.Serializer;
/**
* A serializer that dynamically delegates to a proper serializer based on the
* value passed
*
* @author Bozhidar Bozhanov
*
* @param <T> type
*/
public class TypeInferringSerializer<T> e... | 211 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
/**
* Converts bytes to Integer and vice versa
*
* @author Bozhidar Bozhanov
*
*/
public final class IntegerSerializer extends AbstractSerializer<Integer> {
private static final IntegerSerializer instance = new IntegerSerializer();
... | 272 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import me.prettyprint.hector.api.Serializer;
/**
* The BytesExtractor is a simple identity function. It supports the Extractor interface and
* implements the fromBytes and toBytes as simple ident... | 278 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
/**
* Converts bytes to Boolean and vice versa
*
* @author Bozhidar Bozhanov
*
*/
public final class BooleanSerializer extends AbstractSerializer<Boolean> {
private static final BooleanSerializer instance = new BooleanSerializer();
... | 197 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.serializers;
import java.nio.ByteBuffer;
import me.prettyprint.hector.api.Serializer;
/**
* A BytesArraySerializer translates the byte[] to and from ByteBuffer.
*
* @author Patricio Echague
*
*/
public final class BytesArraySerializer extends AbstractSerializer<byte[]> implement... | 197 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.testutils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.cassandra.contrib.utils.service.CassandraServiceDataCleaner;
import org.apache.cassandra.io.util.FileUtils;
import or... | 814 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model;
import java.util.List;
import me.prettyprint.cassandra.utils.Assert;
import me.prettyprint.hector.api.Serializer;
import me.prettyprint.hector.api.beans.ColumnSlice;
import me.prettyprint.hector.api.beans.Row;
import org.apache.cassandra.thrift.Column;
/**
* A Row is a toupl... | 305 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import static me.prettyprint.cassandra.utils.Assert.notNull;
import me.prettyprint.cassandra.model.AbstractSuperColumnQuery;
import me.prettyprint.cassandra.model.HSuperColumnImpl;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint.cass... | 569 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import java.util.ArrayList;
import java.util.List;
import me.prettyprint.hector.api.HConsistencyLevel;
import org.apache.cassandra.thrift.Column;
import org.apache.cassandra.thrift.ColumnOrSuperColumn;
import org.apache.cassandra.thrift.ConsistencyLevel;
/**
* @author... | 303 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.model.AbstractSliceQuery;
import me.prettyprint.cassandra.model.HKeyRange;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint.... | 931 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.model.AbstractSliceQuery;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint... | 939 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.model.AbstractSliceQuery;
import me.prettyprint.cassandra.model.HKeyRange;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint.... | 908 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import me.prettyprint.cassandra.model.ExecutingKeyspace;
import me.prettyprint.cassandra.model.HSlicePredicate;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint.cassandra.model.QueryResultImpl;
import me.prettyprint.cassandra.service.... | 560 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import static me.prettyprint.cassandra.utils.Assert.noneNull;
import static me.prettyprint.cassandra.utils.Assert.notNull;
import java.nio.ByteBuffer;
import me.prettyprint.hector.api.Serializer;
import org.apache.cassandra.thrift.ColumnPath;
/**
* Utility factory cl... | 441 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.model.AbstractSliceQuery;
import me.prettyprint.cassandra.model.HKeyRange;
import me.prettyprint.cassandra.model.IndexedSlicesQuery;
import me.prettyprint.cassand... | 844 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import me.prettyprint.cassandra.model.AbstractSliceQuery;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint.... | 795 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.Serializer;
import me.prettyprint.hector.api.query.QueryResult;
import me.prettyprint.hector.api.query.SuperCountQuery;
/**
* Counts super column for a of a key in a super column family
*
* @... | 389 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import me.prettyprint.cassandra.model.AbstractSubColumnQuery;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.Serializer;
import me.prettyprint.hector.api.query.SubColumnQuery;
/**
* Thrift implementation of SubColumnQuery
* @author Ran Tavo... | 212 |
github-java-corpus | 2,012 | package me.prettyprint.cassandra.model.thrift;
import me.prettyprint.cassandra.model.AbstractColumnQuery;
import me.prettyprint.cassandra.model.HColumnImpl;
import me.prettyprint.cassandra.model.KeyspaceOperationCallback;
import me.prettyprint.cassandra.model.QueryResultImpl;
import me.prettyprint.cassandra.serializer... | 548 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.