Package com.mapr.fs
Class Inode
java.lang.Object
com.mapr.fs.Inode
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mapr.fs.Inode.List<Closeable>static com.mapr.fs.Inode.List<Closeable>static com.mapr.fs.Inode.List<MapRHTable>static final byte[] -
Constructor Summary
ConstructorsConstructorDescriptionInode(long clusterPtr, long filePtr, String filename, MapRFsInStream inStream, com.mapr.fs.jni.InodeAttributes attr, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) Inode(long clusterPtr, long filePtr, String filename, MapRFsInStream inStream, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) Inode(long clusterPtr, long filePtr, String filename, MapRFsOutStream outStream, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) Inode(long clusterPtr, long filePtr, String filename, MapRHTable htable, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToScanCache(long scannerId, com.mapr.fs.jni.MapRResult[] res, int numSkip, int numGet) voidadviseFile(int type, long offset, long count) com.mapr.fs.jni.PageallocatePage(long startPos) com.mapr.fs.jni.Page[]allocateReadaheadPages(long startPos, int bytes) static voidallocWriteBuffers(int numPages) voidappend(com.mapr.fs.jni.MapRPut mput, boolean needResult, boolean shouldFlush) voidasyncDelete(com.mapr.fs.jni.MapRPut[] mputs) com.mapr.fs.jni.InodeAttributesattrs()voidvoidbeginCommitContext(com.mapr.fs.proto.Dbserver.CommitContext ctx) voidbulkLoaderAppend(long bulkLoaderId, com.mapr.fs.jni.MapRPut[] mputs) voidbulkLoaderAppendEncoded(long bulkLoaderId, com.mapr.fs.jni.MapRJSONPut[] mput) voidbulkLoaderClose(long bulkLoaderId) booleancheckAndDelete(byte[] row, boolean useCf, int familyId, byte[] qualifier, byte[] value, com.mapr.fs.jni.MapRPut mput, boolean shouldFlush) booleancheckAndMutate(byte[] row, boolean useCf, boolean checkForNonExist, com.mapr.fs.jni.MapRRowConstraint checkConstraint, com.mapr.fs.proto.Dbfilters.FilterMsg filterMsg, com.mapr.fs.jni.MapRPut[] mputs, boolean shouldFlush) voidcheckAndMutate(ByteBuffer key, ByteBuffer[] serRecordMutations, int[] mutationsFamilyIds, byte[] serReadConstraint, ByteBuffer serCondition, boolean shouldFlush, com.mapr.fs.jni.MapRUpdateAndGet muag) booleancheckAndPut(byte[] row, boolean useCf, int familyId, byte[] qualifier, byte[] value, com.mapr.fs.jni.MapRPut mput, boolean shouldFlush) voidcheckAndReplaceOrDelete(ByteBuffer key, ByteBuffer[] serRecords, int[] mutationsFamilyIds, byte[] serReadConstraint, ByteBuffer condition, boolean shouldFlush, boolean isDelete, com.mapr.fs.jni.MapRUpdateAndGet muag) voidcleanupAfterRead(com.mapr.fs.jni.Page[] pagesToFill, int bytesRecd) voidvoidclose(boolean doFlush) static voidcloseAll()voidcloseScanner(long scannerId) com.mapr.fs.proto.Dbserver.CommitContextcom.mapr.fs.jni.IndexSyncStateTrackercom.mapr.fs.jni.IndexSyncStateTrackercreateIndexSyncStateTracker(com.mapr.fs.proto.Dbserver.CommitContext ctx) voiddelete(com.mapr.fs.jni.MapRPut[] mputs) voiddiscardPage(com.mapr.fs.jni.Page p) longeof()filename()voidfillPages(com.mapr.fs.jni.Page[] pagesToFill, com.mapr.fs.jni.SFid sfid, org.apache.hadoop.fs.PathId pfid, String file, long intendReadTillOffset) voidflush()voidvoidfreeArena(long arenaAddr) voidget(com.mapr.fs.jni.MapRGet[] mgets, boolean shouldFlush) longgetBulkLoader(byte[] tableUuidForPuts) longcom.mapr.fs.jni.PagegetDataIntoCache(long startPos, int length, long intendReadTillOffset, com.mapr.fs.jni.SFid sfid, org.apache.hadoop.fs.PathId pfid, String file) intgetFamilyId(String fname) getFamilyName(int id) long[]longgetScanner(com.mapr.fs.jni.MapRScan scan) byte[]getSchema(long version) booleanhaveEof()voidincrement(com.mapr.fs.jni.MapRIncrement incr, boolean shouldFlush) booleanisJson()booleanisStale()longvoidmultiTabletGet(com.mapr.fs.jni.MapRGet[] mgets, boolean shouldFlush) voidput(com.mapr.fs.jni.MapRPut[] mputs) intreadPages(com.mapr.fs.jni.Page[] pagesToFill, long intendReadTillOffset) voidreleaseDirty(com.mapr.fs.jni.Page p) voidvoidreturnPageToCache(com.mapr.fs.jni.Page p) voidscanNext(long scannerId, int numRows, com.mapr.fs.jni.MapRResult[] res) voidsyncPut(com.mapr.fs.jni.MapRPut[] mputs, boolean shouldBlock, boolean rowMut) voidsyncUpto(long pos) toString()voidupdateRecord(ByteBuffer key, ByteBuffer[] perFamRecordMuts, int[] mutationsFamilyIds, byte[] serReadConstraint, boolean shouldFlush, com.mapr.fs.jni.MapRUpdateAndGet muag)
-
Field Details
-
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAY -
allInStreams
-
allOutStreams
-
allTables
-
-
Constructor Details
-
Inode
public Inode(long clusterPtr, long filePtr, String filename, MapRHTable htable, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) throws IOException - Throws:
IOException
-
Inode
public Inode(long clusterPtr, long filePtr, String filename, MapRFsOutStream outStream, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) throws IOException - Throws:
IOException
-
Inode
public Inode(long clusterPtr, long filePtr, String filename, MapRFsInStream inStream, com.mapr.fs.jni.InodeAttributes attr, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) throws IOException - Throws:
IOException
-
Inode
public Inode(long clusterPtr, long filePtr, String filename, MapRFsInStream inStream, com.mapr.fs.jni.JNILoggerProxy logger, com.mapr.fs.jni.MapRUserInfo userInfo) throws IOException - Throws:
IOException
-
-
Method Details
-
allocWriteBuffers
public static void allocWriteBuffers(int numPages) -
getFidStr
-
getFidServers
public long[] getFidServers() -
getChunkSize
public long getChunkSize() -
attrs
public com.mapr.fs.jni.InodeAttributes attrs() -
toString
-
isStale
public boolean isStale() -
eof
public long eof() -
haveEof
public boolean haveEof() -
filename
-
allocatePage
- Throws:
IOException
-
releaseDirty
- Throws:
IOException
-
syncUpto
- Throws:
IOException
-
flush
public void flush() -
returnPageToCache
public void returnPageToCache(com.mapr.fs.jni.Page p) -
discardPage
public void discardPage(com.mapr.fs.jni.Page p) -
allocateReadaheadPages
public com.mapr.fs.jni.Page[] allocateReadaheadPages(long startPos, int bytes) -
readPages
public int readPages(com.mapr.fs.jni.Page[] pagesToFill, long intendReadTillOffset) throws IOException - Throws:
IOException
-
cleanupAfterRead
public void cleanupAfterRead(com.mapr.fs.jni.Page[] pagesToFill, int bytesRecd) -
fillPages
public void fillPages(com.mapr.fs.jni.Page[] pagesToFill, com.mapr.fs.jni.SFid sfid, org.apache.hadoop.fs.PathId pfid, String file, long intendReadTillOffset) throws IOException - Throws:
IOException
-
getDataIntoCache
public com.mapr.fs.jni.Page getDataIntoCache(long startPos, int length, long intendReadTillOffset, com.mapr.fs.jni.SFid sfid, org.apache.hadoop.fs.PathId pfid, String file) throws IOException - Throws:
IOException
-
removeFromInStreams
public void removeFromInStreams() -
adviseFile
- Throws:
IOException
-
close
- Throws:
IOException
-
lastUpdateTime
public long lastUpdateTime() -
flushPuts
- Throws:
IOException
-
closeAll
public static void closeAll() -
put
- Throws:
IOException
-
syncPut
public void syncPut(com.mapr.fs.jni.MapRPut[] mputs, boolean shouldBlock, boolean rowMut) throws IOException - Throws:
IOException
-
getBulkLoader
- Throws:
IOException
-
bulkLoaderAppend
- Throws:
IOException
-
bulkLoaderAppendEncoded
public void bulkLoaderAppendEncoded(long bulkLoaderId, com.mapr.fs.jni.MapRJSONPut[] mput) throws IOException - Throws:
IOException
-
bulkLoaderClose
- Throws:
IOException
-
get
- Throws:
IOException
-
multiTabletGet
- Throws:
IOException
-
freeArena
public void freeArena(long arenaAddr) -
addToScanCache
public void addToScanCache(long scannerId, com.mapr.fs.jni.MapRResult[] res, int numSkip, int numGet) -
scanNext
public void scanNext(long scannerId, int numRows, com.mapr.fs.jni.MapRResult[] res) throws IOException - Throws:
IOException
-
closeScanner
- Throws:
IOException
-
getScanner
- Throws:
IOException
-
getSchema
public byte[] getSchema(long version) -
getFamilyName
- Throws:
IOException
-
getFamilyId
- Throws:
IOException
-
increment
- Throws:
IOException
-
checkAndPut
public boolean checkAndPut(byte[] row, boolean useCf, int familyId, byte[] qualifier, byte[] value, com.mapr.fs.jni.MapRPut mput, boolean shouldFlush) throws IOException - Throws:
IOException
-
delete
- Throws:
IOException
-
asyncDelete
- Throws:
IOException
-
checkAndDelete
public boolean checkAndDelete(byte[] row, boolean useCf, int familyId, byte[] qualifier, byte[] value, com.mapr.fs.jni.MapRPut mput, boolean shouldFlush) throws IOException - Throws:
IOException
-
checkAndMutate
public boolean checkAndMutate(byte[] row, boolean useCf, boolean checkForNonExist, com.mapr.fs.jni.MapRRowConstraint checkConstraint, com.mapr.fs.proto.Dbfilters.FilterMsg filterMsg, com.mapr.fs.jni.MapRPut[] mputs, boolean shouldFlush) throws IOException - Throws:
IOException
-
append
public void append(com.mapr.fs.jni.MapRPut mput, boolean needResult, boolean shouldFlush) throws IOException - Throws:
IOException
-
checkAndReplaceOrDelete
public void checkAndReplaceOrDelete(ByteBuffer key, ByteBuffer[] serRecords, int[] mutationsFamilyIds, byte[] serReadConstraint, ByteBuffer condition, boolean shouldFlush, boolean isDelete, com.mapr.fs.jni.MapRUpdateAndGet muag) throws IOException - Throws:
IOException
-
checkAndMutate
public void checkAndMutate(ByteBuffer key, ByteBuffer[] serRecordMutations, int[] mutationsFamilyIds, byte[] serReadConstraint, ByteBuffer serCondition, boolean shouldFlush, com.mapr.fs.jni.MapRUpdateAndGet muag) throws IOException - Throws:
IOException
-
updateRecord
public void updateRecord(ByteBuffer key, ByteBuffer[] perFamRecordMuts, int[] mutationsFamilyIds, byte[] serReadConstraint, boolean shouldFlush, com.mapr.fs.jni.MapRUpdateAndGet muag) throws IOException - Throws:
IOException
-
isJson
public boolean isJson() -
getTableProperties
-
commitAndGetContext
public com.mapr.fs.proto.Dbserver.CommitContext commitAndGetContext() throws IOException, IllegalStateException- Throws:
IOExceptionIllegalStateException
-
createIndexSyncStateTracker
- Throws:
IOException
-
createIndexSyncStateTracker
public com.mapr.fs.jni.IndexSyncStateTracker createIndexSyncStateTracker(com.mapr.fs.proto.Dbserver.CommitContext ctx) throws IOException - Throws:
IOException
-
beginCommitContext
- Throws:
IOExceptionIllegalStateException
-
beginCommitContext
public void beginCommitContext(com.mapr.fs.proto.Dbserver.CommitContext ctx) throws IOException, IllegalStateException - Throws:
IOExceptionIllegalStateException
-
clearCommitContext
- Throws:
IllegalStateException
-