Package | Description |
---|---|
com.amazon.carbonado |
Main user-level interfaces, classes, and annotations for Carbonado.
|
com.amazon.carbonado.gen |
Storable code generation support intended for use by repository implementations.
|
com.amazon.carbonado.layout |
Support for recording the evolution of a storable's layout, used internally
by some repositories.
|
com.amazon.carbonado.qe |
Support for implementing a Query Engine.
|
com.amazon.carbonado.raw |
Provides support for repositories that encode/decode storables in a raw
binary format.
|
com.amazon.carbonado.repo.jdbc |
Repository implementation that connects to an external SQL database via
JDBC.
|
com.amazon.carbonado.spi |
Service Provider Interface for Carbonado.
|
com.amazon.carbonado.synthetic |
Support for dynamic creation of storables, intended for internal use by
repository implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
ConfigurationException
Indicates that a
Repository could not be
instantiated given the configuration information provided to a RepositoryBuilder . |
class |
MismatchException
Indicates that a
Storable doesn't exactly match up with an external
schema. |
class |
UnsupportedTypeException
Thrown by a
Repository which cannot support a Storable which
is declared as Independent or Authoritative . |
Modifier and Type | Method and Description |
---|---|
void |
Storable.readFrom(java.io.InputStream in)
Restores property values and states as encoded by
Storable.writeTo(java.io.OutputStream) . |
<S extends Storable> |
Repository.storageFor(java.lang.Class<S> type)
Returns a Storage instance for the given user defined Storable class or
interface.
|
void |
Storable.writeTo(java.io.OutputStream out)
Serializes property values and states for temporary storage or for
network transfer.
|
Modifier and Type | Method and Description |
---|---|
static <S extends Storable> |
MasterStorableGenerator.getAbstractClass(java.lang.Class<S> type,
java.util.EnumSet<MasterFeature> features)
Returns an abstract implementation of the given Storable type, which
is fully thread-safe.
|
static <S extends Storable> |
DelegateStorableGenerator.getDelegateClass(java.lang.Class<S> type,
java.util.EnumSet<MasterFeature> features)
Delegate class has a constructor that accepts a
DelegateSupport
instance. |
static void |
CodeBuilderUtil.incrementVersion(org.cojen.classfile.CodeBuilder b,
org.cojen.classfile.TypeDesc type)
Generates code to increment a version property value, already on the stack.
|
static void |
CodeBuilderUtil.initialVersion(org.cojen.classfile.CodeBuilder b,
org.cojen.classfile.TypeDesc type,
int value)
Generates code to push an initial version property value on the stack.
|
Constructor and Description |
---|
DetachedStorableFactory(java.lang.Class<S> type) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
LayoutProperty.getPropertyType() |
java.lang.Class |
LayoutProperty.getPropertyType(java.lang.ClassLoader loader) |
java.lang.Class<? extends Storable> |
Layout.reconstruct()
Reconstructs the storable type defined by this layout by returning an
auto-generated class.
|
java.lang.Class<? extends Storable> |
Layout.reconstruct(java.lang.ClassLoader loader)
Reconstructs the storable type defined by this layout by returning an
auto-generated class.
|
Modifier and Type | Method and Description |
---|---|
UnionQueryAnalyzer.Result |
UnionQueryAnalyzer.analyze(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
IndexedQueryAnalyzer.Result |
IndexedQueryAnalyzer.analyze(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
QueryExecutor<S> |
UnionQueryAnalyzer.Result.createExecutor()
Creates a QueryExecutor based on this result.
|
QueryExecutor<S> |
IndexedQueryAnalyzer.Result.createExecutor()
Creates a QueryExecutor based on this result.
|
<S extends Storable> |
RepositoryAccess.storageAccessFor(java.lang.Class<S> type)
Returns a StorageAccess instance for the given user defined Storable
class or interface.
|
Modifier and Type | Method and Description |
---|---|
void |
GenericEncodingStrategy.buildDataDecoding(org.cojen.classfile.CodeAssembler assembler,
StorableProperty<S>[] properties,
org.cojen.classfile.LocalVariable instanceVar,
java.lang.Class<?> adapterInstanceClass,
boolean useWriteMethods,
int generation,
org.cojen.classfile.Label altGenerationHandler,
org.cojen.classfile.LocalVariable encodedVar)
Generates bytecode instructions to decode properties.
|
org.cojen.classfile.LocalVariable |
GenericEncodingStrategy.buildDataEncoding(org.cojen.classfile.CodeAssembler assembler,
StorableProperty<S>[] properties,
org.cojen.classfile.LocalVariable instanceVar,
java.lang.Class<?> adapterInstanceClass,
boolean useReadMethods,
int generation)
Generates bytecode instructions to encode properties.
|
void |
GenericEncodingStrategy.buildKeyDecoding(org.cojen.classfile.CodeAssembler assembler,
OrderedProperty<S>[] properties,
org.cojen.classfile.LocalVariable instanceVar,
java.lang.Class<?> adapterInstanceClass,
boolean useWriteMethods,
org.cojen.classfile.LocalVariable encodedVar)
Generates bytecode instructions to decode properties.
|
org.cojen.classfile.LocalVariable |
GenericEncodingStrategy.buildKeyEncoding(org.cojen.classfile.CodeAssembler assembler,
OrderedProperty<S>[] properties,
org.cojen.classfile.LocalVariable instanceVar,
java.lang.Class<?> adapterInstanceClass,
boolean useReadMethods,
org.cojen.classfile.LocalVariable partialStartVar,
org.cojen.classfile.LocalVariable partialEndVar)
Generates bytecode instructions to encode properties.
|
void |
GenericEncodingStrategy.buildSerialDecoding(org.cojen.classfile.CodeAssembler assembler,
StorableProperty<S>[] properties,
org.cojen.classfile.LocalVariable encodedVar)
Generates bytecode instructions to decode properties and their states.
|
org.cojen.classfile.LocalVariable |
GenericEncodingStrategy.buildSerialEncoding(org.cojen.classfile.CodeAssembler assembler,
StorableProperty<S>[] properties)
Generates bytecode instructions to encode properties and their
states.
|
protected StorablePropertyInfo |
GenericEncodingStrategy.checkSupport(StorableProperty<S> property) |
protected StorablePropertyInfo[] |
GenericEncodingStrategy.checkSupport(StorableProperty<S>[] properties) |
static byte[] |
GzipCompressor.compress(byte[] value,
int prefix)
Encodes into compressed form.
|
protected abstract <S extends Storable> |
CustomStorableCodecFactory.createCodec(java.lang.Class<S> type,
boolean isMaster,
Layout layout) |
protected <S extends Storable> |
CustomStorableCodecFactory.createCodec(java.lang.Class<S> type,
boolean isMaster,
Layout layout,
RawSupport support) |
<S extends Storable> |
CustomStorableCodecFactory.createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout) |
<S extends Storable> |
StorableCodecFactory.createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout) |
<S extends Storable> |
GenericStorableCodecFactory.createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout) |
<S extends Storable> |
CustomStorableCodecFactory.createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout,
RawSupport support) |
<S extends Storable> |
StorableCodecFactory.createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout,
RawSupport support) |
<S extends Storable> |
GenericStorableCodecFactory.createCodec(java.lang.Class<S> type,
StorableIndex pkIndex,
boolean isMaster,
Layout layout,
RawSupport support) |
protected <S extends Storable> |
GenericStorableCodecFactory.createStrategy(java.lang.Class<S> type,
StorableIndex<S> pkIndex)
Override to return a different EncodingStrategy.
|
protected <S extends Storable> |
CompressedStorableCodecFactory.createStrategy(java.lang.Class<S> type,
StorableIndex<S> pkIndex,
LayoutOptions options) |
protected <S extends Storable> |
GenericStorableCodecFactory.createStrategy(java.lang.Class<S> type,
StorableIndex<S> pkIndex,
LayoutOptions options)
Override to return a different EncodingStrategy.
|
static <S extends Storable> |
RawStorableGenerator.getAbstractClass(java.lang.Class<S> type,
boolean isMaster)
Returns an abstract implementation of the given Storable type, which is
fully thread-safe.
|
java.lang.String |
CustomStorableCodecFactory.getStorageName(java.lang.Class<? extends Storable> type)
Returns null to let repository decide what the name should be.
|
java.lang.String |
StorableCodecFactory.getStorageName(java.lang.Class<? extends Storable> type)
Returns the preferred storage/database name for the given type.
|
java.lang.String |
GenericStorableCodecFactory.getStorageName(java.lang.Class<? extends Storable> type)
Returns null to let repository decide what the name should be.
|
protected void |
GenericEncodingStrategy.pushRawSupport(org.cojen.classfile.CodeAssembler a,
org.cojen.classfile.LocalVariable instanceVar)
Generates code to push RawSupport instance to the stack.
|
Constructor and Description |
---|
CustomStorableCodec(java.lang.Class<S> type,
boolean isMaster) |
CustomStorableCodec(java.lang.Class<S> type,
boolean isMaster,
RawSupport<S> support) |
Modifier and Type | Method and Description |
---|---|
static <S extends Storable> |
JDBCStorableIntrospector.examine(java.lang.Class<S> type,
javax.sql.DataSource ds,
java.lang.String catalog,
java.lang.String schema)
Examines the given class and returns a JDBCStorableInfo describing it.
|
Modifier and Type | Method and Description |
---|---|
protected Storage |
StoragePool.create(java.lang.Class type) |
protected Repository |
BelatedRepositoryCreator.createReal() |
protected Storage<S> |
BelatedStorageCreator.createReal() |
protected abstract <S extends Storable> |
StoragePool.createStorage(java.lang.Class<S> type) |
<S extends Storable> |
StoragePool.getStorage(java.lang.Class<S> type)
Returns a Storage instance for the given Storable type, which is lazily
created and pooled.
|
<S extends Storable> |
AbstractRepository.storageFor(java.lang.Class<S> type) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Storable> |
SyntheticStorableReferenceBuilder.build() |
java.lang.Class<? extends Storable> |
SyntheticStorableBuilder.build() |
java.lang.Class<? extends Storable> |
SyntheticBuilder.build()
Convenience method to generate the class.
|
ClassFileBuilder |
SyntheticStorableReferenceBuilder.prepare() |
ClassFileBuilder |
SyntheticStorableBuilder.prepare() |
ClassFileBuilder |
SyntheticBuilder.prepare() |
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.