public interface OutOfCoreDataAccessor
ImmutableClassesGiraphConfiguration
Modifier and Type | Interface and Description |
---|---|
static interface |
OutOfCoreDataAccessor.DataInputWrapper
Interface to wrap
DataInput |
static interface |
OutOfCoreDataAccessor.DataOutputWrapper
Interface to warp
DataOutput |
Modifier and Type | Method and Description |
---|---|
boolean |
dataExist(int threadId,
DataIndex index)
Whether the data for the given thread and index chain exists?
|
int |
getNumAccessorThreads() |
void |
initialize()
Initialize the DAO
|
OutOfCoreDataAccessor.DataInputWrapper |
prepareInput(int threadId,
DataIndex index)
Prepare a wrapper containing
DataInput representation for a
given thread involved in persistence for a given index chain for data. |
OutOfCoreDataAccessor.DataOutputWrapper |
prepareOutput(int threadId,
DataIndex index,
boolean shouldAppend)
Prepare a wrapper containing
DataOutput representation for a
given thread involved in persistence for a given index chain for data. |
void |
shutdown()
Shut down the DAO
|
void initialize()
void shutdown()
int getNumAccessorThreads()
OutOfCoreDataAccessor.DataInputWrapper prepareInput(int threadId, DataIndex index) throws IOException
DataInput
representation for a
given thread involved in persistence for a given index chain for data.threadId
- id of the thread involved in persistenceindex
- index chain of the data to access the serialized data formDataInput
representation of dataIOException
OutOfCoreDataAccessor.DataOutputWrapper prepareOutput(int threadId, DataIndex index, boolean shouldAppend) throws IOException
DataOutput
representation for a
given thread involved in persistence for a given index chain for data.threadId
- id of the thread involved in persistenceindex
- index chain of the data to access the serialized data formshouldAppend
- whether the DataOutput
should be used for
appending to already existing data for the given index
or the DataOutput
should create new
instance to store serialized dataDataOutput
representation of dataIOException
boolean dataExist(int threadId, DataIndex index)
threadId
- id of the thread involved in persistenceindex
- index chain used to access the dataCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.