public class InMemoryDataAccessor.InMemoryDataInputWrapper extends Object implements OutOfCoreDataAccessor.DataInputWrapper
DataInputWrapper
implementation for InMemoryDataAccessor
Constructor and Description |
---|
InMemoryDataInputWrapper(BigDataInput input,
DataIndex index)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
finalizeInput(boolean deleteOnClose)
Finalize and close the
DataInput used for persistence. |
DataInput |
getDataInput() |
public InMemoryDataInputWrapper(BigDataInput input, DataIndex index)
input
- Input to read data fromindex
- DataIndex which this wrapper belongs topublic DataInput getDataInput()
getDataInput
in interface OutOfCoreDataAccessor.DataInputWrapper
DataInput
, should return the same instance
every time it's called (not start from the beginning)public long finalizeInput(boolean deleteOnClose)
OutOfCoreDataAccessor.DataInputWrapper
DataInput
used for persistence.finalizeInput
in interface OutOfCoreDataAccessor.DataInputWrapper
deleteOnClose
- whether the source of DataInput
should be deleted on closing/finalizingDataInput
since it was
openedCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.