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
package me.prettyprint.cassandra.model.thrift; import java.util.List; import me.prettyprint.cassandra.model.AbstractSliceQuery; import me.prettyprint.cassandra.model.ColumnSliceImpl; import me.prettyprint.cassandra.model.KeyspaceOperationCallback; import me.prettyprint.cassandra.model.QueryResultImpl; import me.prett...
818
github-java-corpus
2,012
package me.prettyprint.cassandra.model.thrift; import me.prettyprint.cassandra.serializers.StringSerializer; import me.prettyprint.cassandra.serializers.TypeInferringSerializer; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; /** * The same as ColumnQuery, but dynamica...
257
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.CountQuery; import me.prettyprint.hector.api.query.QueryResult; /** * Counts column for a standard column family * * @author Ran Tavory */ ...
369
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...
840
github-java-corpus
2,012
package me.prettyprint.cassandra.model.thrift; import java.util.List; import me.prettyprint.cassandra.model.AbstractSliceQuery; import me.prettyprint.cassandra.model.KeyspaceOperationCallback; import me.prettyprint.cassandra.model.QueryResultImpl; import me.prettyprint.cassandra.model.SuperSliceImpl; import me.pretty...
761
github-java-corpus
2,012
package me.prettyprint.cassandra.model.thrift; import me.prettyprint.cassandra.model.KeyspaceOperationCallback; import me.prettyprint.cassandra.model.QueryResultImpl; import me.prettyprint.cassandra.service.KeyspaceService; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Keyspace; import...
692
github-java-corpus
2,012
package me.prettyprint.cassandra.model.thrift; import java.util.List; import me.prettyprint.cassandra.model.AbstractSliceQuery; import me.prettyprint.cassandra.model.ColumnSliceImpl; import me.prettyprint.cassandra.model.KeyspaceOperationCallback; import me.prettyprint.cassandra.model.QueryResultImpl; import me.prett...
632
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.HColumn; import me.prettyprint.hector.api.query.ColumnQuery; /** * Defines the commonalities b/w the Avro and the Thrift ColumnQuery implementations. ...
321
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition; import me.prettyprint.hector.api.ddl.KeyspaceDefinition; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by IntelliJ IDEA. * User: peter * Date: 20/...
452
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.service.OperationType; import me.prettyprint.hector.api.ConsistencyLevelPolicy; import me.prettyprint.hector.api.HConsistencyLevel; /** * A simple implementation of {@link ConsistencyLevelPolicy} which returns QUORUM as the desired * consistenc...
163
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.ArrayList; import java.util.List; import me.prettyprint.hector.api.ddl.ColumnDefinition; import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition; import me.prettyprint.hector.api.ddl.ColumnType; import me.prettyprint.hector.api.ddl.ComparatorType; /** * @...
1,225
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.OrderedSuperRows; import me.prettyprint.hector.api.beans.Su...
348
github-java-corpus
2,012
package me.prettyprint.cassandra.model.avro; import me.prettyprint.cassandra.model.AbstractColumnQuery; import me.prettyprint.cassandra.model.KeyspaceOperationCallback; import me.prettyprint.cassandra.model.QueryResultImpl; import me.prettyprint.cassandra.service.KeyspaceService; import me.prettyprint.hector.api.Keysp...
335
github-java-corpus
2,012
package me.prettyprint.cassandra.model.avro; 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 Tavory...
209
github-java-corpus
2,012
package me.prettyprint.cassandra.model.avro; import static me.prettyprint.cassandra.utils.Assert.notNull; import me.prettyprint.cassandra.model.AbstractSuperColumnQuery; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.HSuperColumn; import m...
303
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.Arrays; import me.prettyprint.cassandra.model.thrift.ThriftFactory; import me.prettyprint.cassandra.serializers.TypeInferringSerializer; import me.prettyprint.cassandra.service.BatchMutation; import me.prettyprint.cassandra.service.KeyspaceService; import me.pr...
1,629
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.Collection; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.query.Query; import org.apache.cassandra.thrift.SlicePredicate; /** * Base type for SliceQuery, RangeSliceQuery and Multiget...
595
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.service.KeyspaceService; import me.prettyprint.hector.api.exceptions.HectorException; /** * A callback template used by the package classes. Not for external use. * * @author Ran Tavory * * @param <T> */ public abstract class KeyspaceOperat...
162
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.service.CassandraHost; import me.prettyprint.hector.api.mutation.MutationResult; public final class MutationResultImpl extends ExecutionResult<Void> implements MutationResult { /*package*/ MutationResultImpl(boolean success, long execTime, Cas...
137
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.Map; import me.prettyprint.cassandra.service.KeyspaceService; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.exceptions.HectorException; impo...
428
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.nio.ByteBuffer; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Serializer; import org.apache.cassandra.thrift.KeyRange; /** * A helper class for range queries. * <p> * We allow only keys range, no tokens range since if you want t...
372
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.hector.api.query.Query; import me.prettyprint.hector.api.query.QueryResult; /** * * @author Ran Tavory * * @param <T> The type of the result. May be for example Column of SuperColumn */ public final class QueryResultImpl<T> extends ExecutionResult<T> ...
184
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.HSuperColumn; impor...
457
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.SuperRow; import me.prettyprint.hector.api.beans.SuperSlice; import org.apache.cassandra.thrift.SuperColumn; /** * A Super...
354
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.HashMap; import java.util.Map; import me.prettyprint.cassandra.service.OperationType; import me.prettyprint.hector.api.HConsistencyLevel; import me.prettyprint.hector.api.ConsistencyLevelPolicy; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * ...
618
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.OrderedRows; import me.prettyp...
354
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.cassandra.utils.Assert.notNull; import java.nio.ByteBuffer; import me.prettyprint.cassandra.serializers.SerializerTypeInferer; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.HColumn; import org.apache.cassandra...
999
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.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.ColumnSlice; import me.prettyprint.hector.api.beans.HColumn; import me.prettyprint...
559
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.Collections; import java.util.Map; import me.prettyprint.cassandra.connection.HConnectionManager; import me.prettyprint.cassandra.service.ExceptionsTranslator; import me.prettyprint.cassandra.service.ExceptionsTranslatorImpl; import me.prettyprint.cassandra.ser...
677
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.service.CassandraHost; /** * Describes the state of the executed cassandra command. * This is a handy call metadata inspector which reports the call's execution time, status, * which actual host was connected etc. * * @author Ran * */ pub...
335
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Serializer; import me.prettyprint.he...
976
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.nio.ByteBuffer; import me.prettyprint.hector.api.ddl.ColumnDefinition; import me.prettyprint.hector.api.ddl.ColumnIndexType; /** * @author: peter */ public class BasicColumnDefinition implements ColumnDefinition { private ByteBuffer name; private String vali...
237
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.cassandra.utils.Assert.noneNull; import static me.prettyprint.cassandra.utils.Assert.notNull; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Collections; import java.util.List; import me.prettyprint.hector.api.Serializer; ...
1,154
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.service.OperationType; import me.prettyprint.hector.api.ConsistencyLevelPolicy; import me.prettyprint.hector.api.HConsistencyLevel; /** * A simple implementation of {@link ConsistencyLevelPolicy} which returns ONE as the desired * consistency l...
154
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.Arrays; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.service.KeyspaceService; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyp...
608
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.Row; import me.pre...
360
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.ColumnSlice; import...
354
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.SuperRow; import me.prettyprint.hector.api.beans.S...
427
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import java.nio.ByteBuffer; import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.model.thrift.ThriftConverter; import me.prettyprint.cassandra.service.ExceptionsTranslator; import me.prettyprin...
1,297
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.query.Query; public abstract class AbstractQuery<K, N, V, T> implements Query<T> { protected final Executing...
377
github-java-corpus
2,012
package me.prettyprint.cassandra.model; import static me.prettyprint.cassandra.utils.Assert.noneNull; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.HSuperColumn; import me.prettyprint.hector.api.query.SuperColumnQuery; /** * Defines the...
416
github-java-corpus
2,012
package me.prettyprint.cassandra.examples; import me.prettyprint.hector.api.exceptions.HectorException; /** * Example client that uses the cassandra hector client. * * @author Ran Tavory (rantav@gmail.com) * * @deprecated use ExampleDaoV2 */ @Deprecated public class ExampleClient { public static void main(St...
368
github-java-corpus
2,012
package me.prettyprint.cassandra.examples; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createColumnQuery; import static me.prettyprint.hector.api.factory.HFactory.createKeyspace; import static me.prettyprint.hector.api.factory.HFactory...
1,043
github-java-corpus
2,012
package me.prettyprint.cassandra.jndi; import org.apache.commons.pool.impl.GenericObjectPool; /** * Creates a pool of {@link CassandraClient} suitable for use in application servers such * as Apache Tomcat. * * @see GenericObjectPool * * @author Perry Hoekstra (dutchman_mn@charter.net) * */ public class Ca...
177
github-java-corpus
2,012
package me.prettyprint.cassandra.jndi; import java.util.Hashtable; import javax.naming.Context; import javax.naming.Name; import javax.naming.RefAddr; import javax.naming.Reference; import javax.naming.spi.ObjectFactory; /** * A factory for JNDI Resource managed objects. Responsible for creating a * {...
639
github-java-corpus
2,012
package me.prettyprint.cassandra.utils; import java.io.UnsupportedEncodingException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Encoding and decoding utilities. * * @author Ran Tavory (rantav@gmail.com) * */ public final class StringUtils { private static final Logger log = LoggerFactory....
256
github-java-corpus
2,012
package me.prettyprint.cassandra.utils; /** * A generic low weight assert utility, very similar with Spring's Assert class, * just without the dependency on Spring * * See for example * http://www.jarvana.com/jarvana/view/org/springframework/spring * /1.2.9/spring-1.2.9-javadoc.jar!/org/springframework/util/Asse...
225
github-java-corpus
2,012
package me.prettyprint.cassandra.utils; import java.nio.ByteBuffer; import java.util.UUID; import com.eaio.uuid.UUIDGen; import me.prettyprint.cassandra.service.clock.MicrosecondsSyncClockResolution; import me.prettyprint.hector.api.ClockResolution; /** * Utilitary class to generate TimeUUID (type 1) ...
1,024
github-java-corpus
2,012
package me.prettyprint.cassandra.dao; import static me.prettyprint.hector.api.factory.HFactory.createColumn; import static me.prettyprint.hector.api.factory.HFactory.createMultigetSliceQuery; import static me.prettyprint.hector.api.factory.HFactory.createMutator; import java.util.HashMap; import java.util.Map; impor...
839
github-java-corpus
2,012
package me.prettyprint.hector.api; import java.util.List; import java.util.Map; import java.util.Set; import me.prettyprint.cassandra.connection.HConnectionManager; import me.prettyprint.cassandra.service.CassandraHost; import me.prettyprint.hector.api.ddl.ColumnFamilyDefinition; import me.prettyprint.hector.api.ddl....
463
github-java-corpus
2,012
package me.prettyprint.hector.api; import me.prettyprint.cassandra.model.AllOneConsistencyLevelPolicy; import me.prettyprint.cassandra.model.QuorumAllConsistencyLevelPolicy; import me.prettyprint.cassandra.service.OperationType; /** * Defines the interface for the consistency level policy. * Implementations may cre...
201
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.hector.api.beans.OrderedRows; /** * A query for the call get_range_slices for subcolumns of supercolumns * * @author Ran Tavory * */ public interface RangeSubSlicesQuery<K, SN, N, V> extends Query<OrderedRows<K,N,V>> { RangeSubSlicesQuery<K, SN, N...
207
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.cassandra.model.thrift.ThriftColumnQuery; /** * The Query interface defines the common parts of all hector queries, such as {@link ThriftColumnQuery}. * <p> * The common usage pattern is to create a query, set the required query attributes and invoke ...
255
github-java-corpus
2,012
package me.prettyprint.hector.api.query; /** * Counts column for a standard column family * * @author Ran Tavory */ public interface CountQuery<K, N> extends Query<Integer>{ CountQuery<K, N> setKey(K key); CountQuery<K, N> setColumnFamily(String cf); CountQuery<K, N> setRange(N start, N finish, int count)...
86
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import java.util.Collection; import me.prettyprint.hector.api.beans.Rows; /** * A query wrapper for the call multiget_slice for subcolumns of supercolumns * * @author ran */ public interface MultigetSubSliceQuery<K, SN, N, V> extends Query<Rows<K, N, V>>{ MultigetSubS...
248
github-java-corpus
2,012
package me.prettyprint.hector.api.query; /** * Counts sub columns for a of a key and a super column in a super column family * * @author Ran Tavory * * @param <SN> super column name tyoe */ public interface SubCountQuery<K, SN, N> extends Query<Integer>{ SubCountQuery<K, SN, N> setSuperColumn(SN sc); SubC...
138
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import java.util.Collection; import me.prettyprint.hector.api.beans.SuperRows; /** * A query wrapper for the call multiget_slice for a slice of supercolumns * * @author ran */ public interface MultigetSuperSliceQuery<K, SN, N, V> extends Query<SuperRows<K, SN, N, V>>{ ...
215
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.hector.api.beans.HColumn; /** * A ColumnQuery is used for querying the value of a single and standard column. * <p> * To read a value of a super column use SuperColumnQuery. * To read a value of a sub-column within a super column use SubColumnQuery. ...
194
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import java.util.Collection; import me.prettyprint.hector.api.beans.SuperSlice; /** * A query for the call get_slice. * <p> * Get a slice of super columns from a super column family. * * @author Ran Tavory * * @param <SN> type of the super column name * @param <N> ty...
220
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import java.util.Collection; import me.prettyprint.hector.api.beans.OrderedRows; /** * A query for the call get_range_slices. * * @author Ran Tavory * * @param <N> type of the column names * @param <V> type of the column values */ public interface RangeSlicesQuery<K, N...
216
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import java.util.Collection; import me.prettyprint.hector.api.beans.Rows; /** * A query wrapper for the multiget_slice call * * @author ran */ public interface MultigetSliceQuery<K, N, V> extends Query<Rows<K, N, V>> { MultigetSliceQuery<K, N, V> setKeys(K... keys); ...
265
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.hector.api.beans.HSuperColumn; /** * A SuperColumnQuery is used for querying the value of a single entire supercolumn from a SC family * * @author Ran Tavory * * @param <K> Type of the key * @param <SN> Type of the supercolumn name * @param <N> Typ...
186
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.cassandra.service.CassandraHost; /** * Return type from queries execution. * * @author Ran Tavory * * @param <T> The type of the result. May be for example Column of SuperColumn */ public interface QueryResult<T> { /** * Get the result value....
109
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.hector.api.beans.OrderedSuperRows; /** * A query for the call get_range_slices of supercolumns * * @author Ran Tavory * * @param <SN> type of the supercolumn names * @param <N> type of the column names * @param <V> type of the column values */ pub...
227
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import java.util.Collection; import me.prettyprint.hector.api.beans.ColumnSlice; /** * A query for the call get_slice on subcolumns of a supercolumns. * * @author Ran Tavory * * @param <SN> super column name type * @param <N> column name type * @param <V> column value ...
233
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.hector.api.beans.HColumn; /** * Used to get the value of a subcolumn within a super column * * @author Ran Tavory * * @param <K> Type of the key * @param <SN> supercolumn name type * @param <N> column name type * @param <V> column value type */ p...
183
github-java-corpus
2,012
package me.prettyprint.hector.api.query; /** * Counts super column for a of a key in a super column family * * @author Ran Tavory */ public interface SuperCountQuery<K, SN> extends Query<Integer>{ SuperCountQuery<K, SN> setKey(K key); SuperCountQuery<K, SN> setColumnFamily(String cf); SuperCountQuery<K,...
98
github-java-corpus
2,012
package me.prettyprint.hector.api.query; import me.prettyprint.hector.api.beans.ColumnSlice; /** * A query for the thrift call get_slice * @author Ran Tavory * * @param <N> * @param <V> */ public interface SliceQuery<K, N, V> extends Query<ColumnSlice<N, V>> { SliceQuery<K, N, V> setKey(K key); SliceQuery...
143
github-java-corpus
2,012
package me.prettyprint.hector.api.ddl; public enum ColumnIndexType { KEYS }
21
github-java-corpus
2,012
package me.prettyprint.hector.api.ddl; /** * @author: peter */ public enum ColumnType { STANDARD("Standard"), SUPER("Super"); private String value; private ColumnType(String value) { this.value = value; } public String getValue() { return this.value; } public static ColumnType getFromValue...
158
github-java-corpus
2,012
package me.prettyprint.hector.api.ddl; /** * @author: peter */ public class ComparatorType { public static ComparatorType BYTESTYPE = new ComparatorType("org.apache.cassandra.db.marshal.BytesType"); public static ComparatorType ASCIITYPE = new ComparatorType("org.apache.cassandra.db.marshal.AsciiType"); publi...
361
github-java-corpus
2,012
package me.prettyprint.hector.api.ddl; import java.nio.ByteBuffer; public interface ColumnDefinition { // TODO(ran): should be typed ByteBuffer getName(); String getValidationClass(); ColumnIndexType getIndexType(); String getIndexName(); }
54
github-java-corpus
2,012
package me.prettyprint.hector.api.ddl; import java.util.List; /** * Hector's implementation independent CfDef version. * * @author Ran Tavory * */ public interface ColumnFamilyDefinition { String getKeyspaceName(); String getName(); ColumnType getColumnType(); ComparatorType getComparatorType(); Compa...
151
github-java-corpus
2,012
package me.prettyprint.hector.api.ddl; import java.util.List; import java.util.Map; /** * Hector's implementation independent KsDef version. * * @author Ran Tavory * */ public interface KeyspaceDefinition { String getName(); String getStrategyClass(); Map<String, String> getStrategyOptions(); int getRep...
87
github-java-corpus
2,012
package me.prettyprint.hector.api; import me.prettyprint.cassandra.service.Operation; import me.prettyprint.hector.api.exceptions.HectorException; /** * * @author Ran Tavory * */ public interface Keyspace { public static final String KEYSPACE_SYSTEM = "system"; void setConsistencyLevelPolicy(ConsistencyL...
79
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * Happens when the pool has been closed, but new borrow request come to it. * @author Ran Tavory (rantav@gmail.com) * */ public final class PoolIllegalStateException extends HectorException { private static final long serialVersionUID = -144302975594095361L; ...
85
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * @author Ran Tavory (rantav@gmail.com) */ public final class HUnavailableException extends HectorException { private static final long serialVersionUID = 1971498442136497970L; public HUnavailableException(String s) { super(s); } public HUnavailableEx...
82
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * Error while borrowing or returning object to the pool * * @author Ran Tavory (rantav@gmail.com) * */ public final class HectorPoolException extends HectorException { private static final long serialVersionUID = 674846452472399010L; public HectorPoolExcept...
92
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * @author Ran Tavory (rantav@gmail.com) */ public final class HTimedOutException extends HectorException { private static final long serialVersionUID = 6830964658496659923L; public HTimedOutException(String s) { super(s); } public HTimedOutException(St...
106
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * @author Ran Tavory (rantav@gmail.com) */ public final class HNotFoundException extends HectorException { private static final long serialVersionUID = -8772138078816510007L; public HNotFoundException(String s) { super(s); } public HNotFoundException...
79
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * Indicates that a client pool has been exhausted. * * @author Ran Tavory (ran@outbain.com) * */ public final class PoolExhaustedException extends HectorException { private static final long serialVersionUID = -6200999597951673383L; public PoolExhaustedExce...
99
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; import me.prettyprint.cassandra.serializers.ObjectSerializer; import me.prettyprint.hector.api.Serializer; /** * Describes a serialization exception. * Serialization exceptions may happen when {@link Serializer#fromBytes(byte[])} encounters a value * it's unable to int...
197
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * Base exception class for all Hector related exceptions. * * @author Ran Tavory (rantav@gmail.com) * */ public class HectorException extends RuntimeException { private static final long serialVersionUID = -8498691501268563571L; public HectorException(Strin...
110
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * Designed to loosely wrap TApplicationException which can be generated * by Apache Cassandra under a variety of ambiguous conditions - some of * them transient, some of them not. * * @author zznate */ public class HCassandraInternalException extends HectorExcep...
255
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * @author Ran Tavory (rantav@gmail.com) */ public final class HInvalidRequestException extends HectorException { private static final long serialVersionUID = 7186392651338685069L; private String why; public HInvalidRequestException(String msg) { super(m...
124
github-java-corpus
2,012
package me.prettyprint.hector.api.exceptions; /** * Hector transport exception (thrift or avro). * * @author Ran Tavory (ran@outbrain.com) * */ public final class HectorTransportException extends HectorException { private static final long serialVersionUID = -8687856384223311785L; public HectorTransportEx...
116
github-java-corpus
2,012
package me.prettyprint.hector.api; import me.prettyprint.cassandra.service.clock.MicrosecondsClockResolution; import me.prettyprint.cassandra.service.clock.MicrosecondsSyncClockResolution; import me.prettyprint.cassandra.service.clock.MillisecondsClockResolution; import me.prettyprint.cassandra.service.clock.SecondsCl...
324
github-java-corpus
2,012
package me.prettyprint.hector.api.mutation; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.beans.HColumn; import me.prettyprint.hector.api.beans.HSuperColumn; /** * A Mutator inserts or deletes values from the cluster. * There are two main ways to use a mutator: * 1. Use the insert/d...
937
github-java-corpus
2,012
package me.prettyprint.hector.api.mutation; import me.prettyprint.cassandra.service.CassandraHost; /** * Result from a mutation. * * @author Ran Tavory * */ public interface MutationResult { public long getExecutionTimeMicro(); public CassandraHost getHostUsed(); }
61
github-java-corpus
2,012
package me.prettyprint.hector.api; import java.nio.ByteBuffer; import java.util.List; import java.util.Map; import java.util.Set; import me.prettyprint.cassandra.serializers.StringSerializer; /** * Serializes a type T from the given bytes, or vice a versa. * * In cassandra column names and column values (and sta...
376
github-java-corpus
2,012
package me.prettyprint.hector.api.factory; import java.util.HashMap; import java.util.List; import java.util.Map; import me.prettyprint.cassandra.model.ExecutingKeyspace; import me.prettyprint.cassandra.model.HColumnImpl; import me.prettyprint.cassandra.model.HSuperColumnImpl; import me.prettyprint.cassandra.model.In...
3,820
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; import java.util.List; /** * A ColumnSlice represents a set of columns as returned by calls such as get_slice * * @author ran */ public interface ColumnSlice<N, V> { /** * * @return an unmodifiable list of the columns */ List<HColumn<N, V>> getColumns(); ...
91
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; import java.util.List; /** * Represents a return of the get_slice query for supercolumns * * @param <SN> Super column name type * @param <N> Column name type * @param <V> Column value type */ public interface SuperSlice<SN, N, V> { /** * @return an unmodifiable li...
124
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; /** * Returned by a MultigetSliceQuery (multiget_slice thrift call) * * @author Ran Tavory * * @param <N> type of the column names * @param <V> type of the column values */ public interface Rows<K, N, V> extends Iterable<Row<K, N, V>> { Row<K, N, V> getByKey(K key); ...
100
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; import java.nio.ByteBuffer; import java.util.List; import me.prettyprint.hector.api.Serializer; /** * Models a SuperColumn in a protocol independant manner * * @param <SN> * SuperColumn name type * @param <N> * Column name type * @param <V> * ...
249
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; /** * Returned by a MultigetSuperSliceQuery (multiget_slice for supercolumns) * * @author Ran Tavory * * @param <N> * @param <V> */ public interface SuperRows<K, SN, N, V> extends Iterable<SuperRow<K, SN, N, V>>{ SuperRow<K, SN, N, V> getByKey(K key); int getCount...
99
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; import java.util.List; public interface OrderedSuperRows<K, SN, N, V> extends SuperRows<K, SN, N, V>{ /** * Preserves rows order * @return an unmodifiable list of Rows */ List<SuperRow<K, SN, N, V>> getList(); }
77
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; import me.prettyprint.hector.api.Serializer; /** * Hector Column definition. * * @param <N> The type of the column name * @param <V> The type of the column value * * @author Ran Tavory (rantav@gmail.com) * */ public interface HColumn<N, V> { HColumn<N, V> setName(N ...
155
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; import java.util.List; /** * Return type from get_range_slices for simple columns * @author Ran Tavory * * @param <N> column name type * @param <V> column value type */ public interface OrderedRows<K, N, V> extends Rows<K, N, V>{ /** * Preserves rows order * @re...
121
github-java-corpus
2,012
package me.prettyprint.hector.api.beans; /** * A SuperRow is a touple consisting of a Key and a SuperSlice. * * A Row may be used to hold the returned value from queries such as get_range_slices. * * @author Ran Tavory * * @param <N> * Column name type * @param <V> * Column value type * ...
115